Thread (5 messages) flat view 5 messages, 2 authors, 2021-10-19
STALE1765d LANDED

Landed in mainline as b9b8218bb3c0 on 2021-10-24.

[PATCH] can: xilinx_can: remove redundent netif_napi_del from xcan_remove

From: Dongliang Mu <hidden>
Date: 2021-10-17 12:50:49
Also in: linux-arm-kernel, linux-can, lkml
Subsystem: can network drivers, the rest, xilinx can driver · Maintainers: Marc Kleine-Budde, Vincent Mailhol, Linus Torvalds, Appana Durga Kedareswara rao

Since netif_napi_del is already done in the free_candev, so we remove
this redundent netif_napi_del invocation. In addition, this patch can
match the operations in the xcan_probe and xcan_remove functions.

Signed-off-by: Dongliang Mu <redacted>
---
 drivers/net/can/xilinx_can.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c
index 3b883e607d8b..60a3fb369058 100644
--- a/drivers/net/can/xilinx_can.c
+++ b/drivers/net/can/xilinx_can.c
@@ -1848,7 +1848,6 @@ static int xcan_remove(struct platform_device *pdev)
 
 	unregister_candev(ndev);
 	pm_runtime_disable(&pdev->dev);
-	netif_napi_del(&priv->napi);
 	free_candev(ndev);
 
 	return 0;
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help