scsi: NCR5380: Avoid compiler warning when -Wimplicit-fallthrough is enabled
authorFinn Thain <fthain@telegraphics.com.au>
Thu, 7 Mar 2019 21:49:02 +0000 (08:49 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 18:18:17 +0000 (14:18 -0400)
Adjust comments accordingly.

Cc: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c

index 01c23d27f290b114c3f9e0b20b713edd30e2d884..e8677174f91484d19434b655ce2f9a527d4e1692 100644 (file)
@@ -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",