Input: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Warning level 2 was used: -Wimplicit-fallthrough=2

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Gustavo A. R. Silva
2018-08-06 15:31:02 -07:00
committed by Dmitry Torokhov
parent 6cad4e269e
commit 17a4ed5545
8 changed files with 14 additions and 2 deletions

View File

@@ -472,6 +472,7 @@ static int atp_status_check(struct urb *urb)
dev->info->datalen, dev->urb->actual_length);
dev->overflow_warned = true;
}
/* fall through */
case -ECONNRESET:
case -ENOENT:
case -ESHUTDOWN: