summaryrefslogtreecommitdiff
path: root/net/hsr
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-01-26 11:11:01 -0800
committerDavid S. Miller <davem@davemloft.net>2022-01-27 13:53:27 +0000
commit0ab1e6d9a453459ce5104a3412e9c193608971bd (patch)
tree2969c567c4ab7bfb360b73c2107def167a5b65dc /net/hsr
parent560e08eda7969c3ef0639ab05f718be03a49d387 (diff)
hsr: remove get_prp_lan_id()
get_prp_lan_id() has never been used. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr')
-rw-r--r--net/hsr/hsr_main.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/hsr/hsr_main.h b/net/hsr/hsr_main.h
index 043e4e9a1694..ff9ec7634218 100644
--- a/net/hsr/hsr_main.h
+++ b/net/hsr/hsr_main.h
@@ -259,11 +259,6 @@ static inline u16 prp_get_skb_sequence_nr(struct prp_rct *rct)
return ntohs(rct->sequence_nr);
}
-static inline u16 get_prp_lan_id(struct prp_rct *rct)
-{
- return ntohs(rct->lan_id_and_LSDU_size) >> 12;
-}
-
/* assume there is a valid rct */
static inline bool prp_check_lsdu_size(struct sk_buff *skb,
struct prp_rct *rct,