Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9481a38 authored by Matvejchikov Ilya's avatar Matvejchikov Ilya Committed by David S. Miller
Browse files

slip: remove unused 'line' field from the 'slip' structure

parent fd99beb9
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -807,7 +807,6 @@ static int slip_open(struct tty_struct *tty)


	sl->tty = tty;
	sl->tty = tty;
	tty->disc_data = sl;
	tty->disc_data = sl;
	sl->line = tty_devnum(tty);
	sl->pid = current->pid;
	sl->pid = current->pid;


	if (!test_bit(SLF_INUSE, &sl->flags)) {
	if (!test_bit(SLF_INUSE, &sl->flags)) {
@@ -874,8 +873,6 @@ static void slip_close(struct tty_struct *tty)


	tty->disc_data = NULL;
	tty->disc_data = NULL;
	sl->tty = NULL;
	sl->tty = NULL;
	if (!sl->leased)
		sl->line = 0;


	/* VSV = very important to remove timers */
	/* VSV = very important to remove timers */
#ifdef CONFIG_SLIP_SMART
#ifdef CONFIG_SLIP_SMART
+0 −1
Original line number Original line Diff line number Diff line
@@ -90,7 +90,6 @@ struct slip {


  unsigned char		mode;		/* SLIP mode			*/
  unsigned char		mode;		/* SLIP mode			*/
  unsigned char		leased;
  unsigned char		leased;
  dev_t			line;
  pid_t			pid;
  pid_t			pid;
#define SL_MODE_SLIP	0
#define SL_MODE_SLIP	0
#define SL_MODE_CSLIP	1
#define SL_MODE_CSLIP	1