Commit ad566231 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

net: hsr: remove unused inline functions

There's no callers in-tree anymore.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a54776f2
...@@ -62,15 +62,6 @@ struct hsr_tag { ...@@ -62,15 +62,6 @@ struct hsr_tag {
* with the path field in-between, which seems strange. I'm guessing the MAC * with the path field in-between, which seems strange. I'm guessing the MAC
* address definition is in error. * address definition is in error.
*/ */
static inline u16 get_hsr_tag_path(struct hsr_tag *ht)
{
return ntohs(ht->path_and_LSDU_size) >> 12;
}
static inline u16 get_hsr_tag_LSDU_size(struct hsr_tag *ht)
{
return ntohs(ht->path_and_LSDU_size) & 0x0FFF;
}
static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path)
{ {
...@@ -103,16 +94,6 @@ struct hsr_sup_payload { ...@@ -103,16 +94,6 @@ struct hsr_sup_payload {
unsigned char macaddress_A[ETH_ALEN]; unsigned char macaddress_A[ETH_ALEN];
} __packed; } __packed;
static inline u16 get_hsr_stag_path(struct hsr_sup_tag *hst)
{
return get_hsr_tag_path((struct hsr_tag *)hst);
}
static inline u16 get_hsr_stag_HSR_ver(struct hsr_sup_tag *hst)
{
return get_hsr_tag_LSDU_size((struct hsr_tag *)hst);
}
static inline void set_hsr_stag_path(struct hsr_sup_tag *hst, u16 path) static inline void set_hsr_stag_path(struct hsr_sup_tag *hst, u16 path)
{ {
set_hsr_tag_path((struct hsr_tag *)hst, path); set_hsr_tag_path((struct hsr_tag *)hst, path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment