Revert "can: bcm: Remove proc entry when dev is unregistered."

This reverts commit 333529d2d4.
This commit is contained in:
Ksawlii 2024-11-24 00:23:42 +01:00
parent 35b8c8834d
commit 7a8e8ba02b

View file

@ -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;