scsi: wd33c93: Mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 29 Jul 2019 21:03:13 +0000 (16:03 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 01:35:59 +0000 (21:35 -0400)
Mark switch cases where we are expecting to fall through.

This patch fixes the following warning (Building: m68k):

drivers/scsi/wd33c93.c: In function  round_4 :
drivers/scsi/wd33c93.c:1856:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
   case 2: ++x;
           ^~~
drivers/scsi/wd33c93.c:1857:3: note: here
   case 3: ++x;
   ^~~~

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/wd33c93.c

index fb7b289fa09f78e073402e472d2fa45f9d95fa14..f81046f0e68a69bea44e2f311a3d1f401b97a02c 100644 (file)
@@ -1854,6 +1854,7 @@ round_4(unsigned int x)
                case 1: --x;
                        break;
                case 2: ++x;
+                       /* fall through */
                case 3: ++x;
        }
        return x;