Revert "can: bcm: Remove proc entry when dev is unregistered."
This reverts commit 333529d2d4
.
This commit is contained in:
parent
35b8c8834d
commit
7a8e8ba02b
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue