提交 58a636ec 编写于 作者: G Gustavo A. R. Silva 提交者: Felipe Balbi

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: NGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 d4acce95
...@@ -1261,6 +1261,7 @@ static void msm_chg_detect_work(struct work_struct *w) ...@@ -1261,6 +1261,7 @@ static void msm_chg_detect_work(struct work_struct *w)
/* fall through */ /* fall through */
case USB_CHG_STATE_SECONDARY_DONE: case USB_CHG_STATE_SECONDARY_DONE:
motg->chg_state = USB_CHG_STATE_DETECTED; motg->chg_state = USB_CHG_STATE_DETECTED;
/* fall through */
case USB_CHG_STATE_DETECTED: case USB_CHG_STATE_DETECTED:
msm_chg_block_off(motg); msm_chg_block_off(motg);
dev_dbg(phy->dev, "charger = %d\n", motg->chg_type); dev_dbg(phy->dev, "charger = %d\n", motg->chg_type);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册