Skip to content

Commit

Permalink
slip: remove unused 'line' field from the 'slip' structure
Browse files Browse the repository at this point in the history
Signed-off-by: Matvejchikov Ilya <matvejchikov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Matvejchikov Ilya authored and David S. Miller committed Jul 19, 2011
1 parent fd99beb commit a9481a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/net/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion drivers/net/slip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9481a3

Please sign in to comment.