Skip to content

Commit 63b121e

Browse files
Junlisuzhoufelipebalbi
authored andcommitted
usb: phy: mxs: declare variable with initialized value
Initialize vbus_value to be 0 since it's possible not to assign any value before judgement. Acked-by: Peter Chen <peter.chen@nxp.com Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
1 parent a38a08d commit 63b121e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/phy/phy-mxs-usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static int mxs_phy_hw_init(struct mxs_phy *mxs_phy)
220220
/* Return true if the vbus is there */
221221
static bool mxs_phy_get_vbus_status(struct mxs_phy *mxs_phy)
222222
{
223-
unsigned int vbus_value;
223+
unsigned int vbus_value = 0;
224224

225225
if (!mxs_phy->regmap_anatop)
226226
return false;

0 commit comments

Comments
 (0)