* [PATCH net-next] drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT"
@ 2020-09-11 6:35 Xie He
2020-09-11 21:44 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Xie He @ 2020-09-11 6:35 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski, netdev, linux-kernel; +Cc: Xie He
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>
---
drivers/net/wan/x25_asy.c | 2 --
drivers/net/wan/x25_asy.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/drivers/net/wan/x25_asy.c b/drivers/net/wan/x25_asy.c
index 7ee980575208..5a7cf8bf9d0d 100644
--- a/drivers/net/wan/x25_asy.c
+++ b/drivers/net/wan/x25_asy.c
@@ -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 */
}
/*
diff --git a/drivers/net/wan/x25_asy.h b/drivers/net/wan/x25_asy.h
index eb4a4216ee94..87798287c9ca 100644
--- a/drivers/net/wan/x25_asy.h
+++ b/drivers/net/wan/x25_asy.h
@@ -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 */
};
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT"
2020-09-11 6:35 [PATCH net-next] drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT" Xie He
@ 2020-09-11 21:44 ` David Miller
2020-09-11 23:49 ` Xie He
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2020-09-11 21:44 UTC (permalink / raw)
To: xie.he.0141; +Cc: kuba, netdev, linux-kernel
From: Xie He <xie.he.0141@gmail.com>
Date: Thu, 10 Sep 2020 23:35:03 -0700
> 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>
Applied, it looks like this code wss based upon the slip.c code.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT"
2020-09-11 21:44 ` David Miller
@ 2020-09-11 23:49 ` Xie He
0 siblings, 0 replies; 3+ messages in thread
From: Xie He @ 2020-09-11 23:49 UTC (permalink / raw)
To: David Miller; +Cc: Jakub Kicinski, Linux Kernel Network Developers, LKML
On Fri, Sep 11, 2020 at 2:44 PM David Miller <davem@davemloft.net> wrote:
>
> From: Xie He <xie.he.0141@gmail.com>
> Date: Thu, 10 Sep 2020 23:35:03 -0700
>
> > 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>
>
> Applied, it looks like this code wss based upon the slip.c code.
Oh! You are right! I can finally understand now why there are so many
things named "sl" in this file.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-11 23:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-11 6:35 [PATCH net-next] drivers/net/wan/x25_asy: Remove an unused flag "SLF_OUTWAIT" Xie He
2020-09-11 21:44 ` David Miller
2020-09-11 23:49 ` Xie He
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.