From: Gustavo A. R. Silva Date: Tue, 24 Oct 2017 03:21:09 +0000 (-0500) Subject: usb: phy: phy-msm-usb: mark expected switch fall-through X-Git-Tag: v4.15-rc1~140^2~117^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58a636ec0362d99f4edaaad4f3c682bf124e799e;p=thirdparty%2Fkernel%2Flinux.git usb: phy: phy-msm-usb: mark expected switch fall-through In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1222118 Signed-off-by: Gustavo A. R. Silva Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 3d0dd2f974157..8bc3403a1295b 100644 --- a/drivers/usb/phy/phy-msm-usb.c +++ b/drivers/usb/phy/phy-msm-usb.c @@ -1261,6 +1261,7 @@ static void msm_chg_detect_work(struct work_struct *w) /* fall through */ case USB_CHG_STATE_SECONDARY_DONE: motg->chg_state = USB_CHG_STATE_DETECTED; + /* fall through */ case USB_CHG_STATE_DETECTED: msm_chg_block_off(motg); dev_dbg(phy->dev, "charger = %d\n", motg->chg_type);