Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 457b16d4 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Felipe Balbi
Browse files

usb: gadget: goku_udc: mark expected switch fall-throughs



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

Addresses-Coverity-ID: 145713
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 1c236d41
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -127,10 +127,14 @@ goku_ep_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
	mode = 0;
	max = get_unaligned_le16(&desc->wMaxPacketSize);
	switch (max) {
	case 64:	mode++;
	case 32:	mode++;
	case 16:	mode++;
	case 8:		mode <<= 3;
	case 64:
		mode++; /* fall through */
	case 32:
		mode++; /* fall through */
	case 16:
		mode++; /* fall through */
	case 8:
		mode <<= 3;
		break;
	default:
		return -EINVAL;