浏览代码

usb: gadget: udc: dummy_hcd: mark expected switch fall-throughs

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>
Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gustavo A. R. Silva 7 年之前
父节点
当前提交
f93de0c27e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/usb/gadget/udc/dummy_hcd.c

+ 3 - 0
drivers/usb/gadget/udc/dummy_hcd.c

@@ -569,10 +569,12 @@ static int dummy_enable(struct usb_ep *_ep,
 			if (max <= 1024)
 			if (max <= 1024)
 				break;
 				break;
 			/* save a return statement */
 			/* save a return statement */
+			/* fall through */
 		case USB_SPEED_FULL:
 		case USB_SPEED_FULL:
 			if (max <= 64)
 			if (max <= 64)
 				break;
 				break;
 			/* save a return statement */
 			/* save a return statement */
+			/* fall through */
 		default:
 		default:
 			if (max <= 8)
 			if (max <= 8)
 				break;
 				break;
@@ -590,6 +592,7 @@ static int dummy_enable(struct usb_ep *_ep,
 			if (max <= 1024)
 			if (max <= 1024)
 				break;
 				break;
 			/* save a return statement */
 			/* save a return statement */
+			/* fall through */
 		case USB_SPEED_FULL:
 		case USB_SPEED_FULL:
 			if (max <= 1023)
 			if (max <= 1023)
 				break;
 				break;