scsi: fcoe: remove unneeded semicolon in fcoe.c
authorJason Yan <yanaijie@huawei.com>
Tue, 21 Apr 2020 03:40:08 +0000 (11:40 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Apr 2020 04:07:40 +0000 (00:07 -0400)
Fix the following coccicheck warning:

drivers/scsi/fcoe/fcoe.c:1918:3-4: Unneeded semicolon
drivers/scsi/fcoe/fcoe.c:1930:3-4: Unneeded semicolon

Link: https://lore.kernel.org/r/20200421034008.27865-1-yanaijie@huawei.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe.c

index 25dae9f0b20550ee4357b04b7eb4eee44a2a6f68..cb41d166e0c0feac42c6cdf98eed171f10f5d8c9 100644 (file)
@@ -1915,7 +1915,7 @@ static int fcoe_device_notification(struct notifier_block *notifier,
                case FCOE_CTLR_ENABLED:
                case FCOE_CTLR_UNUSED:
                        fcoe_ctlr_link_up(ctlr);
-               };
+               }
        } else if (fcoe_ctlr_link_down(ctlr)) {
                switch (cdev->enabled) {
                case FCOE_CTLR_DISABLED:
@@ -1927,7 +1927,7 @@ static int fcoe_device_notification(struct notifier_block *notifier,
                        stats->LinkFailureCount++;
                        put_cpu();
                        fcoe_clean_pending_queue(lport);
-               };
+               }
        }
 out:
        return rc;