Skip to content

Commit 3bbe8b1

Browse files
GustavoARSilvaDominique Martinet
authored andcommitted
9p: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: net/9p/trans_xen.c:514:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enabling -Wimplicit-fallthrough Link: http://lkml.kernel.org/r/20190123071632.GA8039@embeddedor Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
1 parent 49a5785 commit 3bbe8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/9p/trans_xen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ static void xen_9pfs_front_changed(struct xenbus_device *dev,
513513
case XenbusStateClosed:
514514
if (dev->state == XenbusStateClosed)
515515
break;
516-
/* Missed the backend's CLOSING state -- fallthrough */
516+
/* fall through - Missed the backend's CLOSING state */
517517
case XenbusStateClosing:
518518
xenbus_frontend_closed(dev);
519519
break;

0 commit comments

Comments
 (0)