linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hv: utils: fix coding style
@ 2019-03-05 23:45 Jesús Castro
  2019-03-06  0:37 ` Joe Perches
  2019-03-12  0:29 ` [PATCH v2] hv: utils: enhance code for human read Jesús Castro
  0 siblings, 2 replies; 5+ messages in thread
From: Jesús Castro @ 2019-03-05 23:45 UTC (permalink / raw)
  To: kys, haiyangz, sthemmin, sashal
  Cc: miguel.bernal, devel, linux-kernel, Jesús Castro

Checkpatch script is showing a coding style error and is showing:

ERROR: else should follow close brace '}'
+	}
+	else if (hvt->mode == HVUTIL_TRANSPORT_NETLINK) {

This commit fixes the coding style, not a functional change.

Signed-off-by: Jesús Castro <x51v4n@gmail.com>
---
 drivers/hv/hv_utils_transport.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/hv/hv_utils_transport.c b/drivers/hv/hv_utils_transport.c
index 832777527936..eff5419b7b35 100644
--- a/drivers/hv/hv_utils_transport.c
+++ b/drivers/hv/hv_utils_transport.c
@@ -139,8 +139,7 @@ static int hvt_op_open(struct inode *inode, struct file *file)
 		 * device gets released.
 		 */
 		hvt->mode = HVUTIL_TRANSPORT_CHARDEV;
-	}
-	else if (hvt->mode == HVUTIL_TRANSPORT_NETLINK) {
+	} else if (hvt->mode == HVUTIL_TRANSPORT_NETLINK) {
 		/*
 		 * We're switching from netlink communication to using char
 		 * device. Issue the reset first.
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-25 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 23:45 [PATCH] hv: utils: fix coding style Jesús Castro
2019-03-06  0:37 ` Joe Perches
2019-03-11 23:21   ` Jesús Castro
2019-03-12  0:29 ` [PATCH v2] hv: utils: enhance code for human read Jesús Castro
2019-03-25 22:42   ` Jesús Castro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).