Hi, Li Jun <jun.li@xxxxxxx> writes: > Initialize vbus_value to be 0 since it's possible not to assign > any value before judgement. > > Signed-off-by: Li Jun <jun.li@xxxxxxx> > --- > drivers/usb/phy/phy-mxs-usb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c > index c2936dc..00bfea0 100644 > --- a/drivers/usb/phy/phy-mxs-usb.c > +++ b/drivers/usb/phy/phy-mxs-usb.c > @@ -220,7 +220,7 @@ static int mxs_phy_hw_init(struct mxs_phy *mxs_phy) > /* Return true if the vbus is there */ > static bool mxs_phy_get_vbus_status(struct mxs_phy *mxs_phy) > { > - unsigned int vbus_value; > + unsigned int vbus_value = 0; does this fix any warning ? -- balbi
Attachment:
signature.asc
Description: PGP signature