mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] netlink: Clean up errors in scsi_netlink.c
@ 2023-09-27  8:00 chenguohua
  0 siblings, 0 replies; only message in thread
From: chenguohua @ 2023-09-27  8:00 UTC (permalink / raw)
  To: jejb, martin.petersen; +Cc: linux-scsi, linux-kernel

Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
 drivers/scsi/scsi_netlink.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/scsi/scsi_netlink.c b/drivers/scsi/scsi_netlink.c
index d7f76fd84256..5ff22fe93277 100644
--- a/drivers/scsi/scsi_netlink.c
+++ b/drivers/scsi/scsi_netlink.c
@@ -91,8 +91,7 @@ scsi_nl_rcv_msg(struct sk_buff *skb)
 			if (err)
 				printk(KERN_WARNING "%s: Msgtype %d failed - err %d\n",
 				       __func__, hdr->msgtype, err);
-		}
-		else
+		} else
 			err = -ENOENT;
 
 next_msg:
-- 
2.17.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-27  8:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  8:00 [PATCH] netlink: Clean up errors in scsi_netlink.c chenguohua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®