Skip to content

Commit 9023705

Browse files
GustavoARSilvadtor
authored andcommitted
Input: xen-kbdfront - mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case, I placed the "fall through" part at the beginning of the code comment, which is what GCC is expecting to find. Addresses-Coverity-ID: 114757 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 03bf678 commit 9023705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/misc/xen-kbdfront.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static void xenkbd_backend_changed(struct xenbus_device *dev,
524524
case XenbusStateClosed:
525525
if (dev->state == XenbusStateClosed)
526526
break;
527-
/* Missed the backend's CLOSING state -- fallthrough */
527+
/* fall through - Missed the backend's CLOSING state */
528528
case XenbusStateClosing:
529529
xenbus_frontend_closed(dev);
530530
break;

0 commit comments

Comments
 (0)