Skip to content

Commit

Permalink
drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT"
Browse files Browse the repository at this point in the history
The "SLF_OUTWAIT" flag defined in x25_asy.h is not actually used.
It is only cleared at one place in x25_asy.c but is never read or set.
So we can remove it.

Signed-off-by: Xie He <xie.he.0141@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Xie He authored and David S. Miller committed Sep 11, 2020
1 parent 31f2760 commit d324fa8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wan/x25_asy.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ static void x25_asy_encaps(struct x25_asy *sl, unsigned char *icp, int len)
actual = sl->tty->ops->write(sl->tty, sl->xbuff, count);
sl->xleft = count - actual;
sl->xhead = sl->xbuff + actual;
/* VSV */
clear_bit(SLF_OUTWAIT, &sl->flags); /* reset outfill flag */
}

/*
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wan/x25_asy.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ struct x25_asy {
#define SLF_INUSE 0 /* Channel in use */
#define SLF_ESCAPE 1 /* ESC received */
#define SLF_ERROR 2 /* Parity, etc. error */
#define SLF_OUTWAIT 4 /* Waiting for output */
};


Expand Down

0 comments on commit d324fa8

Please sign in to comment.