Skip to content

Commit

Permalink
net/hsr: remove seq_nr_after_or_eq
Browse files Browse the repository at this point in the history
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
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alex Shi authored and David S. Miller committed Jan 21, 2020
1 parent e09538e commit 339821f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/hsr/hsr_framereg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 339821f

Please sign in to comment.