slip: remove unused 'line' field from the 'slip' structure
authorMatvejchikov Ilya <matvejchikov@gmail.com>
Mon, 18 Jul 2011 21:56:44 +0000 (21:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jul 2011 23:55:42 +0000 (16:55 -0700)
Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip.c
drivers/net/slip.h

index 8befe697bd7605080943e838b1617e758ff9bcaf..f11b3f3df24fa813a2a1b967be619057c12c0f0f 100644 (file)
@@ -807,7 +807,6 @@ static int slip_open(struct tty_struct *tty)
 
        sl->tty = tty;
        tty->disc_data = sl;
-       sl->line = tty_devnum(tty);
        sl->pid = current->pid;
 
        if (!test_bit(SLF_INUSE, &sl->flags)) {
@@ -874,8 +873,6 @@ static void slip_close(struct tty_struct *tty)
 
        tty->disc_data = NULL;
        sl->tty = NULL;
-       if (!sl->leased)
-               sl->line = 0;
 
        /* VSV = very important to remove timers */
 #ifdef CONFIG_SLIP_SMART
index 914e958abbfc88fb74b2a13bf22dff007d79ee70..aa0764ce2342e95c449fb4e5b18df98514ffce6b 100644 (file)
@@ -90,7 +90,6 @@ struct slip {
 
   unsigned char                mode;           /* SLIP mode                    */
   unsigned char                leased;
-  dev_t                        line;
   pid_t                        pid;
 #define SL_MODE_SLIP   0
 #define SL_MODE_CSLIP  1