Skip to content

Commit 02900f4

Browse files
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: KSPP#115 Link: https://lore.kernel.org/linux-mm/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 25d7b70 commit 02900f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pcmcia/db1xxx_ss.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ static int db1x_pcmcia_get_status(struct pcmcia_socket *skt,
356356
case 0:
357357
case 2:
358358
status |= SS_3VCARD; /* 3V card */
359+
break;
359360
case 3:
360361
break; /* 5V card: set nothing */
361362
default:

0 commit comments

Comments
 (0)