diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-24 05:21:09 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-10-24 11:31:21 +0200 |
commit | 58a636ec0362d99f4edaaad4f3c682bf124e799e (patch) | |
tree | e3593659554af0b022cbd81af899cd5e6260d181 /drivers/usb/phy | |
parent | usb: gadget: f_tcm: mark expected switch fall-through (diff) | |
download | linux-58a636ec0362d99f4edaaad4f3c682bf124e799e.tar.xz linux-58a636ec0362d99f4edaaad4f3c682bf124e799e.zip |
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 <garsilva@embeddedor.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-msm-usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 3d0dd2f97415..8bc3403a1295 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); |