mtd: spi-nor: mark desirable switch case fall through
authorTudor.Ambarus@microchip.com <Tudor.Ambarus@microchip.com>
Fri, 9 Nov 2018 17:40:21 +0000 (17:40 +0000)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 10 Dec 2018 20:59:07 +0000 (21:59 +0100)
commitf66734ae2d8d2b5e39f4ac3c5dc9666125bcb76e
treecc3cc4299f0f43ae9908b0e74a548abf21f1b739
parent81554171373018b83f3554b9e725d2b5bf1844a5
mtd: spi-nor: mark desirable switch case fall through

gcc 7 with -Wimplicit-fallthrough raises:

drivers/mtd/spi-nor/spi-nor.c: In function ‘set_4byte’:
drivers/mtd/spi-nor/spi-nor.c:289:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
   need_wren = true;
   ~~~~~~~~~~^~~~~~
drivers/mtd/spi-nor/spi-nor.c:290:2: note: here
  case SNOR_MFR_MACRONIX:
  ^~~~

Quiet the warning by marking the expected switch fall through.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c