From 7a8e8ba02bfb44b065dfcdc04b3422b80d55eacf Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:42 +0100 Subject: [PATCH] Revert "can: bcm: Remove proc entry when dev is unregistered." This reverts commit 333529d2d4111b7a7375fb87689e9b147be4ff0f. --- net/can/bcm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/can/bcm.c b/net/can/bcm.c index b2b1bd672..2388c619f 100755 --- a/net/can/bcm.c +++ b/net/can/bcm.c @@ -1423,10 +1423,6 @@ static void bcm_notify(struct bcm_sock *bo, unsigned long msg, /* remove device reference, if this is our bound device */ if (bo->bound && bo->ifindex == dev->ifindex) { -#if IS_ENABLED(CONFIG_PROC_FS) - if (sock_net(sk)->can.bcmproc_dir && bo->bcm_proc_read) - remove_proc_entry(bo->procname, sock_net(sk)->can.bcmproc_dir); -#endif bo->bound = 0; bo->ifindex = 0; notify_enodev = 1;