Commit 4ae85b23 authored by Pavel Skripkin's avatar Pavel Skripkin Committed by David S. Miller

net: ethernet: ezchip: remove redundant check

err varibale will be set everytime, when code gets
into this path. This check will just slowdown the execution
and that's all.

Fixes: 0dd07709 ("NET: Add ezchip ethernet driver")
Signed-off-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e4b8700e
...@@ -630,7 +630,6 @@ static s32 nps_enet_probe(struct platform_device *pdev) ...@@ -630,7 +630,6 @@ static s32 nps_enet_probe(struct platform_device *pdev)
out_netif_api: out_netif_api:
netif_napi_del(&priv->napi); netif_napi_del(&priv->napi);
out_netdev: out_netdev:
if (err)
free_netdev(ndev); free_netdev(ndev);
return err; return err;
......
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