summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authoryuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>2017-11-01 21:10:32 +0800
committerDavid S. Miller <davem@davemloft.net>2017-11-02 16:15:25 +0900
commita35c52b71580a1fb29df11270b1461f6d17f5670 (patch)
treec92a5ac3dcf525d835c7f528173da0654a5cfbfa /drivers
parent03c4cc385faaa46e5877f499c6b997fef792f8d3 (diff)
net: dpaa: fix maybe uninitialized var in dpaa_open()
Signed-off-by: yuan linyu <Linyu.Yuan@alcatel-sbell.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/freescale/dpaa/dpaa_eth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
index a8d0be824149..68f0ac129ba4 100644
--- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
+++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
@@ -2468,7 +2468,8 @@ static int dpaa_open(struct net_device *net_dev)
mac_dev = priv->mac_dev;
dpaa_eth_napi_enable(priv);
- if (dpaa_phy_init(net_dev))
+ err = dpaa_phy_init(net_dev);
+ if (err)
goto phy_init_failed;
for (i = 0; i < ARRAY_SIZE(mac_dev->port); i++) {