summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-09-13 17:22:01 -0500
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-10-13 14:47:48 -0500
commit02900f428d3c7acd89b77784bec33ddec7b750a4 (patch)
tree08736c4f2650f1f84e7976c1ef1d082ad208cf35 /drivers/pcmcia
parent25d7b70e0202321ed284c51788764fd978bed415 (diff)
downloadlinux-stable-02900f428d3c7acd89b77784bec33ddec7b750a4.tar.gz
linux-stable-02900f428d3c7acd89b77784bec33ddec7b750a4.tar.bz2
linux-stable-02900f428d3c7acd89b77784bec33ddec7b750a4.zip
pcmcia: db1xxx_ss: Fix fall-through warning for Clang
Fix the following fallthrough warning: drivers/pcmcia/db1xxx_ss.c:359:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 3: ^ drivers/pcmcia/db1xxx_ss.c:359:2: note: insert 'break;' to avoid fall-through case 3: ^ break; This helps with the ongoing efforts to globally enable -Wimplicit-fallthrough for Clang. Link: https://github.com/KSPP/linux/issues/115 Link: https://lore.kernel.org/linux-mm/202109030839.t2llsvmc-lkp@intel.com/ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/db1xxx_ss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pcmcia/db1xxx_ss.c b/drivers/pcmcia/db1xxx_ss.c
index a6fbc709913e..87a33ecc2cf1 100644
--- a/drivers/pcmcia/db1xxx_ss.c
+++ b/drivers/pcmcia/db1xxx_ss.c
@@ -356,6 +356,7 @@ static int db1x_pcmcia_get_status(struct pcmcia_socket *skt,
case 0:
case 2:
status |= SS_3VCARD; /* 3V card */
+ break;
case 3:
break; /* 5V card: set nothing */
default: