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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -630,7 +630,6 @@ static s32 nps_enet_probe(struct platform_device *pdev)
out_netif_api:
	netif_napi_del(&priv->napi);
out_netdev:
	if (err)
	free_netdev(ndev);

	return err;