]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8187se: Fixed oops when rmmoding
authorMaxim Mikityanskiy <maxtram95@gmail.com>
Tue, 13 Nov 2012 17:28:12 +0000 (19:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 20:40:00 +0000 (12:40 -0800)
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>
drivers/staging/rtl8187se/r8180_core.c

index 6ec3a93803fa0ac548e7eddec0d6596eab57354c..8139f266d72ef3dbe5946dace04dd07964214084 100644 (file)
@@ -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;
        }
 }