diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 7ea6e180139c..537d9ee7209f 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -287,8 +287,7 @@ int snmp6_unregister_dev(struct inet6_dev *idev) | |||
287 | return -ENOENT; | 287 | return -ENOENT; |
288 | if (!idev->stats.proc_dir_entry) | 288 | if (!idev->stats.proc_dir_entry) |
289 | return -EINVAL; | 289 | return -EINVAL; |
290 | remove_proc_entry(idev->stats.proc_dir_entry->name, | 290 | proc_remove(idev->stats.proc_dir_entry); |
291 | net->mib.proc_net_devsnmp6); | ||
292 | idev->stats.proc_dir_entry = NULL; | 291 | idev->stats.proc_dir_entry = NULL; |
293 | return 0; | 292 | return 0; |
294 | } | 293 | } |