usb: gadget: f_phonet: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 115004 Addresses-Coverity-ID: 115005 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9c4c41bb4f
commit
0f8838a8a0
|
@ -215,6 +215,7 @@ static void pn_tx_complete(struct usb_ep *ep, struct usb_request *req)
|
||||||
case -ESHUTDOWN: /* disconnected */
|
case -ESHUTDOWN: /* disconnected */
|
||||||
case -ECONNRESET: /* disabled */
|
case -ECONNRESET: /* disabled */
|
||||||
dev->stats.tx_aborted_errors++;
|
dev->stats.tx_aborted_errors++;
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
dev->stats.tx_errors++;
|
dev->stats.tx_errors++;
|
||||||
}
|
}
|
||||||
|
@ -362,6 +363,7 @@ static void pn_rx_complete(struct usb_ep *ep, struct usb_request *req)
|
||||||
/* Do resubmit in these cases: */
|
/* Do resubmit in these cases: */
|
||||||
case -EOVERFLOW: /* request buffer overflow */
|
case -EOVERFLOW: /* request buffer overflow */
|
||||||
dev->stats.rx_over_errors++;
|
dev->stats.rx_over_errors++;
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
dev->stats.rx_errors++;
|
dev->stats.rx_errors++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue