staging: rtl8187se: Fixed oops when rmmoding
Don't remove procfs entry that is never created Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d4457a8e42
commit
17e81bd3d3
@ -323,7 +323,6 @@ void rtl8180_proc_remove_one(struct net_device *dev)
|
||||
remove_proc_entry("stats-tx", priv->dir_dev);
|
||||
remove_proc_entry("stats-rx", priv->dir_dev);
|
||||
remove_proc_entry("registers", priv->dir_dev);
|
||||
remove_proc_entry(dev->name, rtl8180_proc);
|
||||
priv->dir_dev = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user