Skip to contentSkip to conversation

usb: wusbcore: wa-xfer: mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Oct 26, 2017 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: wusbcore: wa-xfer: mark expected switch fall-through

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

---
 drivers/usb/wusbcore/wa-xfer.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/wusbcore/wa-xfer.c +1 -0
index e70322b..bee2404 100644
@@ -2156,6 +2156,7 @@ static void wa_complete_remaining_xfer_segs(struct wa_xfer *xfer,
 		 * do not increment RPIPE avail for the WA_SEG_DELAYED case
 		 * since it has not been submitted to the RPIPE.
 		 */
+		/* fall through */
 		case WA_SEG_DELAYED:
 			xfer->segs_done++;
 			current_seg->status = status;
Signature · 1 line
2.7.4