]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ftgmac100: Fix wrong netif_napi_del in release
authorAndrew Lunn <andrew@lunn.ch>
Fri, 6 Feb 2026 03:17:54 +0000 (11:17 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 12:40:51 +0000 (13:40 +0100)
netif_napi_add() is called in open. There is a symmetric call to
netif_napi_del() in stop. Remove to wrong call to netif_napi_del() in
release.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Link: https://patch.msgid.link/20260206-ftgmac-cleanup-v5-14-ad28a9067ea7@aspeedtech.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/faraday/ftgmac100.c

index 410c5ab82516583de8d568ed3560d4d61407a61c..e3b69451d436e7a286d00ce6eb592fb9bc162ecf 100644 (file)
@@ -2115,8 +2115,6 @@ static void ftgmac100_remove(struct platform_device *pdev)
 
        ftgmac100_phy_disconnect(netdev);
        ftgmac100_destroy_mdio(netdev);
-
-       netif_napi_del(&priv->napi);
 }
 
 static const struct ftgmac100_match_data ftgmac100_match_data_ast2400 = {