From 0d8ee841eb433c767280e01f281d5bf9bea177f9 Mon Sep 17 00:00:00 2001 From: Rostislav Lisovy Date: Thu, 24 Nov 2011 16:44:46 +0100 Subject: [PATCH] sllin: Removed unused 'leased' field. --- sllin/sllin.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sllin/sllin.c b/sllin/sllin.c index 497e3e2..64eb10b 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; @@ -640,7 +639,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); @@ -814,8 +813,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); -- 2.39.2