Skip to content

Commit 9167f0d

Browse files
GustavoARSilvamartinkpetersen
authored andcommitted
scsi: xen-scsifront: 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 replaced "Missed the backend's Closing state -- fallthrough" with "fall through - Missed the backend's Closing state", which contains the "fall through" annotation at the beginnig of the code comment, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 74e716f commit 9167f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/xen-scsifront.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ static void scsifront_backend_changed(struct xenbus_device *dev,
11121112
case XenbusStateClosed:
11131113
if (dev->state == XenbusStateClosed)
11141114
break;
1115-
/* Missed the backend's Closing state -- fallthrough */
1115+
/* fall through - Missed the backend's Closing state */
11161116
case XenbusStateClosing:
11171117
scsifront_disconnect(info);
11181118
break;

0 commit comments

Comments
 (0)