r8169: remove netif_napi_del in probe error path
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 12 Dec 2017 06:41:06 +0000 (07:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 19:51:50 +0000 (14:51 -0500)
commit4cf964af0a7238f9d9dbebf4ec70a415ff5164e5
treebf6cdf0f1817f4d0e7e34ef25b42441b9ac10e0a
parent4c45d24a759d8e7257347ef7200f1319db6ab5f8
r8169: remove netif_napi_del in probe error path

netif_napi_del is called implicitely by free_netdev, therefore we
don't have to do it explicitely.

When the probe error path is reached, the net_device isn't
registered yet. Therefore reordering the call to netif_napi_del
shouldn't cause any issues.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c