Commit a35c52b7 authored by yuan linyu's avatar yuan linyu Committed by David S. Miller

net: dpaa: fix maybe uninitialized var in dpaa_open()

Signed-off-by: default avataryuan linyu <Linyu.Yuan@alcatel-sbell.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 03c4cc38
...@@ -2468,7 +2468,8 @@ static int dpaa_open(struct net_device *net_dev) ...@@ -2468,7 +2468,8 @@ static int dpaa_open(struct net_device *net_dev)
mac_dev = priv->mac_dev; mac_dev = priv->mac_dev;
dpaa_eth_napi_enable(priv); dpaa_eth_napi_enable(priv);
if (dpaa_phy_init(net_dev)) err = dpaa_phy_init(net_dev);
if (err)
goto phy_init_failed; goto phy_init_failed;
for (i = 0; i < ARRAY_SIZE(mac_dev->port); i++) { for (i = 0; i < ARRAY_SIZE(mac_dev->port); i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment