diff options
author | Li Jun <jun.li@nxp.com> | 2016-01-21 02:51:26 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2016-02-03 12:57:41 -0500 |
commit | 63b121e3a3167df9fdb99633fd1c840c841b07b9 (patch) | |
tree | 121a3151b222c82a315afce69c0b4834a1dafce3 | |
parent | a38a08dfaaab978dced63aa9cad45f0f62e23a66 (diff) |
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>
-rw-r--r-- | drivers/usb/phy/phy-mxs-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c index c2936dc48ca7..00bfea01be65 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) | |||
220 | /* Return true if the vbus is there */ | 220 | /* Return true if the vbus is there */ |
221 | static bool mxs_phy_get_vbus_status(struct mxs_phy *mxs_phy) | 221 | static bool mxs_phy_get_vbus_status(struct mxs_phy *mxs_phy) |
222 | { | 222 | { |
223 | unsigned int vbus_value; | 223 | unsigned int vbus_value = 0; |
224 | 224 | ||
225 | if (!mxs_phy->regmap_anatop) | 225 | if (!mxs_phy->regmap_anatop) |
226 | return false; | 226 | return false; |