summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLi Jun <jun.li@nxp.com>2016-01-20 10:56:59 +0800
committerLi Jun <jun.li@nxp.com>2016-01-21 14:42:03 +0800
commit1462c5acacfc06882bc2a0c672d77f68a8046b9a (patch)
tree827aa7d7351c8204faf13fa416a0d0b91169d604 /drivers
parentc40fa7e0d31b42b1c9195c87167484c491da4d44 (diff)
MLK-11896-8 usb: phy: mxs: declar variable with initialized value
Fix coverity CID 17601 uninitialized scalar variable: vbus_value. Signed-off-by: Li Jun <jun.li@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/phy/phy-mxs-usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-mxs-usb.c b/drivers/usb/phy/phy-mxs-usb.c
index 73c8bb77d643..c70c569564d9 100644
--- a/drivers/usb/phy/phy-mxs-usb.c
+++ b/drivers/usb/phy/phy-mxs-usb.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2015 Freescale Semiconductor, Inc.
+ * Copyright 2012-2016 Freescale Semiconductor, Inc.
* Copyright (C) 2012 Marek Vasut <marex@denx.de>
* on behalf of DENX Software Engineering GmbH
*
@@ -254,7 +254,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;
if (!mxs_phy->regmap_anatop)
return false;