提交 3ef59837 编写于 作者: G Gustavo A. R. Silva 提交者: Greg Kroah-Hartman

usb: host: isp116x-hcd: mark expected switch fall-throughs

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

Addresses-Coverity-ID: 115006
Addresses-Coverity-ID: 115007
Signed-off-by: NGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 74fef19f
...@@ -1018,6 +1018,7 @@ static int isp116x_hub_control(struct usb_hcd *hcd, ...@@ -1018,6 +1018,7 @@ static int isp116x_hub_control(struct usb_hcd *hcd,
spin_lock_irqsave(&isp116x->lock, flags); spin_lock_irqsave(&isp116x->lock, flags);
isp116x_write_reg32(isp116x, HCRHSTATUS, RH_HS_OCIC); isp116x_write_reg32(isp116x, HCRHSTATUS, RH_HS_OCIC);
spin_unlock_irqrestore(&isp116x->lock, flags); spin_unlock_irqrestore(&isp116x->lock, flags);
/* fall through */
case C_HUB_LOCAL_POWER: case C_HUB_LOCAL_POWER:
DBG("C_HUB_LOCAL_POWER\n"); DBG("C_HUB_LOCAL_POWER\n");
break; break;
...@@ -1433,8 +1434,10 @@ static int isp116x_bus_suspend(struct usb_hcd *hcd) ...@@ -1433,8 +1434,10 @@ static int isp116x_bus_suspend(struct usb_hcd *hcd)
isp116x_write_reg32(isp116x, HCCONTROL, isp116x_write_reg32(isp116x, HCCONTROL,
(val & ~HCCONTROL_HCFS) | (val & ~HCCONTROL_HCFS) |
HCCONTROL_USB_RESET); HCCONTROL_USB_RESET);
/* fall through */
case HCCONTROL_USB_RESET: case HCCONTROL_USB_RESET:
ret = -EBUSY; ret = -EBUSY;
/* fall through */
default: /* HCCONTROL_USB_SUSPEND */ default: /* HCCONTROL_USB_SUSPEND */
spin_unlock_irqrestore(&isp116x->lock, flags); spin_unlock_irqrestore(&isp116x->lock, flags);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册