phy: qcom-usb-hs: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 5 Mar 2021 10:02:19 +0000 (04:02 -0600)
committerVinod Koul <vkoul@kernel.org>
Mon, 15 Mar 2021 10:27:08 +0000 (15:57 +0530)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20210305100219.GA142595@embeddedor
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-usb-hs.c

index 327df1a99f77325a1f229cc1638402f5e8bbe5d6..5c6c17673396175493c0a1f2c19b409b6136c2b8 100644 (file)
@@ -56,6 +56,7 @@ static int qcom_usb_hs_phy_set_mode(struct phy *phy,
                        fallthrough;
                case PHY_MODE_USB_DEVICE:
                        val |= ULPI_INT_SESS_VALID;
+                       break;
                default:
                        break;
                }