linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/hsr: remove seq_nr_after_or_eq
@ 2020-01-21  8:49 Alex Shi
  2020-01-21 11:04 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Shi @ 2020-01-21  8:49 UTC (permalink / raw)
  Cc: Arvid Brodin, David S. Miller, netdev, linux-kernel

It's never used after introduced. So maybe better to remove.

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Arvid Brodin <arvid.brodin@alten.se> 
Cc: "David S. Miller" <davem@davemloft.net> 
Cc: netdev@vger.kernel.org 
Cc: linux-kernel@vger.kernel.org 
---
 net/hsr/hsr_framereg.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/hsr/hsr_framereg.c b/net/hsr/hsr_framereg.c
index 27dc65d7de67..364ea2cc028e 100644
--- a/net/hsr/hsr_framereg.c
+++ b/net/hsr/hsr_framereg.c
@@ -35,7 +35,6 @@ static bool seq_nr_after(u16 a, u16 b)
 }
 
 #define seq_nr_before(a, b)		seq_nr_after((b), (a))
-#define seq_nr_after_or_eq(a, b)	(!seq_nr_before((a), (b)))
 #define seq_nr_before_or_eq(a, b)	(!seq_nr_after((a), (b)))
 
 bool hsr_addr_is_self(struct hsr_priv *hsr, unsigned char *addr)
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/hsr: remove seq_nr_after_or_eq
  2020-01-21  8:49 [PATCH] net/hsr: remove seq_nr_after_or_eq Alex Shi
@ 2020-01-21 11:04 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-01-21 11:04 UTC (permalink / raw)
  To: alex.shi; +Cc: arvid.brodin, netdev, linux-kernel

From: Alex Shi <alex.shi@linux.alibaba.com>
Date: Tue, 21 Jan 2020 16:49:53 +0800

> It's never used after introduced. So maybe better to remove.
> 
> Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>

Applied to net-next

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-21 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  8:49 [PATCH] net/hsr: remove seq_nr_after_or_eq Alex Shi
2020-01-21 11:04 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).