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: 0dd077093636 ("NET: Add ezchip ethernet driver") Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e4b8700e07
commit
4ae85b23e1
@ -630,8 +630,7 @@ static s32 nps_enet_probe(struct platform_device *pdev)
|
||||
out_netif_api:
|
||||
netif_napi_del(&priv->napi);
|
||||
out_netdev:
|
||||
if (err)
|
||||
free_netdev(ndev);
|
||||
free_netdev(ndev);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user