From: Finn Thain Date: Thu, 7 Mar 2019 21:49:02 +0000 (+1100) Subject: scsi: NCR5380: Avoid compiler warning when -Wimplicit-fallthrough is enabled X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=df135e32d72cc4d4af54ff748d6a2af78e38d331;p=openwrt%2Fstaging%2Fblogic.git scsi: NCR5380: Avoid compiler warning when -Wimplicit-fallthrough is enabled Adjust comments accordingly. Cc: Gustavo A. R. Silva Cc: Michael Schmitz Signed-off-by: Finn Thain Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index 01c23d27f290..e8677174f914 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c @@ -1933,13 +1933,13 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) if (!hostdata->connected) return; - /* Fall through to reject message */ - + /* Reject message */ + /* Fall through */ + default: /* * If we get something weird that we aren't expecting, - * reject it. + * log it. */ - default: if (tmp == EXTENDED_MESSAGE) scmd_printk(KERN_INFO, cmd, "rejecting unknown extended message code %02x, length %d\n",