summaryrefslogtreecommitdiffstats
path: root/net/atm/lec.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/atm/lec.c')
-rw-r--r--net/atm/lec.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index d9921b408..035058033 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -857,12 +857,7 @@ void cleanup_module(void)
for (i = 0; i < MAX_LEC_ITF; i++) {
if (dev_lec[i] != NULL) {
priv = (struct lec_priv *)dev_lec[i]->priv;
- if (priv->is_trdev) {
-#ifdef CONFIG_TR
- unregister_trdev(dev_lec[i]);
-#endif
- } else
- unregister_netdev(dev_lec[i]);
+ unregister_trdev(dev_lec[i]);
kfree(dev_lec[i]);
dev_lec[i] = NULL;
}