usb: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20200707195607.GA4198@embeddedor Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
4e71e07943
commit
0d9b6d49fe
@@ -2815,7 +2815,7 @@ static int cdns3_gadget_udc_start(struct usb_gadget *gadget,
|
||||
dev_err(priv_dev->dev,
|
||||
"invalid maximum_speed parameter %d\n",
|
||||
max_speed);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case USB_SPEED_UNKNOWN:
|
||||
/* default to superspeed */
|
||||
max_speed = USB_SPEED_SUPER;
|
||||
@@ -3056,7 +3056,7 @@ static int cdns3_gadget_start(struct cdns3 *cdns)
|
||||
default:
|
||||
dev_err(cdns->dev, "invalid maximum_speed parameter %d\n",
|
||||
max_speed);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case USB_SPEED_UNKNOWN:
|
||||
/* default to superspeed */
|
||||
max_speed = USB_SPEED_SUPER;
|
||||
|
Reference in New Issue
Block a user