diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-02-08 19:06:15 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-05-06 21:57:05 +0200 |
commit | af5d44b04dad70744a1750c733574436f51fd494 (patch) | |
tree | 22ce21f04e8618dc957474b750211ddde577da8a /drivers/gpio | |
parent | mtd: cfi_util: mark expected switch fall-throughs (diff) | |
download | linux-af5d44b04dad70744a1750c733574436f51fd494.tar.xz linux-af5d44b04dad70744a1750c733574436f51fd494.zip |
mtd: cfi_cmdset_0002: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.
This patch fixes the following warnings:
drivers/mtd/chips/cfi_cmdset_0002.c: In function ‘get_chip’:
drivers/mtd/chips/cfi_cmdset_0002.c:870:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (mode == FL_READY && chip->oldstate == FL_READY)
^
drivers/mtd/chips/cfi_cmdset_0002.c:873:2: note: here
default:
^~~~~~~
drivers/mtd/chips/cfi_cmdset_0002.c: In function ‘cfi_amdstd_sync’:
drivers/mtd/chips/cfi_cmdset_0002.c:2745:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
chip->state = FL_SYNCING;
~~~~~~~~~~~~^~~~~~~~~~~~
drivers/mtd/chips/cfi_cmdset_0002.c:2750:3: note: here
case FL_SYNCING:
^~~~
Warning level 3 was used: -Wimplicit-fallthrough=3
This patch is part of the ongoing efforts to enabling
-Wimplicit-fallthrough.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Tokunori Ikegami <ikegami.t@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions