linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: greybus: mark expected switch fall-through in check_urb_status
@ 2017-10-10 20:10 Gustavo A. R. Silva
  2017-10-11  7:45 ` Johan Hovold
  0 siblings, 1 reply; 8+ messages in thread
From: Gustavo A. R. Silva @ 2017-10-10 20:10 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel, Gustavo A. R. Silva

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

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
 drivers/staging/greybus/es2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c
index f7b24e0..e451c2f 100644
--- a/drivers/staging/greybus/es2.c
+++ b/drivers/staging/greybus/es2.c
@@ -761,6 +761,7 @@ static int check_urb_status(struct urb *urb)
 	case -EOVERFLOW:
 		dev_err(dev, "%s: overflow actual length is %d\n",
 			__func__, urb->actual_length);
+		/* fall through */
 	case -ECONNRESET:
 	case -ENOENT:
 	case -ESHUTDOWN:
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-10-12  9:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-10 20:10 [PATCH] staging: greybus: mark expected switch fall-through in check_urb_status Gustavo A. R. Silva
2017-10-11  7:45 ` Johan Hovold
2017-10-11 15:12   ` Gustavo A. R. Silva
2017-10-11 16:06     ` Joe Perches
2017-10-11 16:34       ` Gustavo A. R. Silva
2017-10-11 16:08     ` Johan Hovold
2017-10-11 16:31       ` Gustavo A. R. Silva
2017-10-12  9:05         ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).