diff options
author | 2017-11-01 21:10:32 +0800 | |
---|---|---|
committer | 2017-11-02 16:15:25 +0900 | |
commit | a35c52b71580a1fb29df11270b1461f6d17f5670 (patch) | |
tree | c92a5ac3dcf525d835c7f528173da0654a5cfbfa /drivers/net/ethernet/freescale | |
parent | bpf: cpumap micro-optimization in cpu_map_enqueue (diff) | |
download | linux-a35c52b71580a1fb29df11270b1461f6d17f5670.tar.gz linux-a35c52b71580a1fb29df11270b1461f6d17f5670.tar.bz2 linux-a35c52b71580a1fb29df11270b1461f6d17f5670.zip |
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/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 3 |
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++) { |