X-Git-Url: http://rtime.felk.cvut.cz/gitweb/linux-lin.git/blobdiff_plain/1e920bfd0d3f0f9f5a4998ee8f8551e721354271..da4c52f4818f9b7353cdda054272fcf191366bac:/sllin/sllin.c?ds=sidebyside diff --git a/sllin/sllin.c b/sllin/sllin.c index d177f54..bfa5dc5 100644 --- a/sllin/sllin.c +++ b/sllin/sllin.c @@ -123,7 +123,6 @@ struct sllin { #define SLF_TXEVENT 3 /* Tx wake event */ #define SLF_MSGEVENT 4 /* CAN message to sent */ - unsigned char leased; dev_t line; struct task_struct *kwthread; wait_queue_head_t kwt_wq; @@ -660,7 +659,7 @@ static void sll_sync(void) break; sl = netdev_priv(dev); - if (sl->tty || sl->leased) + if (sl->tty) continue; if (dev->flags & IFF_UP) dev_close(dev); @@ -834,8 +833,6 @@ static void sllin_close(struct tty_struct *tty) tty->disc_data = NULL; sl->tty = NULL; - if (!sl->leased) - sl->line = 0; /* Flush network side */ unregister_netdev(sl->dev);