phy: qcom-usb-hs: Fix fall-through warnings for Clang
Subsystems (2)
PATCH RESEND 1/1 phy: qcom-usb-hs: Fix fall-through warnings for Clang
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.
--- drivers/phy/qualcomm/phy-qcom-usb-hs.c | 1 + 1 file changed, 1 insertion(+)
drivers/phy/qualcomm/phy-qcom-usb-hs.c +1 -0
@@ -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 ; }
Signature · 1 line
2.27.0
Quoted 3 lines · Gustavo A. R. Silva
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.
Applied, thanks
Signature · 6 lines
~Vinod -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy