drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT"
Subsystems (2)
PATCH 1/1 drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT"
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.
--- drivers/net/wan/x25_asy.c | 2 -- drivers/net/wan/x25_asy.h | 1 - 2 files changed, 3 deletions(-)
drivers/net/wan/x25_asy.c +0 -2
@@ -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 */ }/*
drivers/net/wan/x25_asy.h +0 -1
@@ -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 */ };
Signature · 1 line
2.25.1
From: Xie He <[email protected]>
Date: Thu, 10 Sep 2020 23:35:03 -0700
Quoted 5 lines
The "
SLF_OUTWAIT" flag defined inx25_asy.his not actually used. It is only cleared at one place inx25_asy.cbut is never read or set. So we can remove it.Signed-off-by Xie He <[email protected]>
Applied, it looks like this code wss based upon the slip.c code.
Quoted 11 lines · David Miller
From: Xie He <[email protected]>
Date: Thu, 10 Sep 2020 23:35:03 -0700Quoted 5 lines
The "
SLF_OUTWAIT" flag defined inx25_asy.his not actually used. It is only cleared at one place inx25_asy.cbut is never read or set. So we can remove it.Signed-off-by Xie He <[email protected]>Applied, it looks like this code wss based upon the
slip.ccode.
Oh! You are right! I can finally understand now why there are so many things named "sl" in this file.