Skip to content

Commit ad56623

Browse files
YueHaibingdavem330
authored andcommitted
net: hsr: remove unused inline functions
There's no callers in-tree anymore. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a54776f commit ad56623

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎net/hsr/hsr_main.h‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ struct hsr_tag {
6262
* with the path field in-between, which seems strange. I'm guessing the MAC
6363
* address definition is in error.
6464
*/
65-
static inline u16 get_hsr_tag_path(struct hsr_tag *ht)
66-
{
67-
return ntohs(ht->path_and_LSDU_size) >> 12;
68-
}
69-
70-
static inline u16 get_hsr_tag_LSDU_size(struct hsr_tag *ht)
71-
{
72-
return ntohs(ht->path_and_LSDU_size) & 0x0FFF;
73-
}
7465

7566
static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path)
7667
{
@@ -103,16 +94,6 @@ struct hsr_sup_payload {
10394
unsigned char macaddress_A[ETH_ALEN];
10495
} __packed;
10596

106-
static inline u16 get_hsr_stag_path(struct hsr_sup_tag *hst)
107-
{
108-
return get_hsr_tag_path((struct hsr_tag *)hst);
109-
}
110-
111-
static inline u16 get_hsr_stag_HSR_ver(struct hsr_sup_tag *hst)
112-
{
113-
return get_hsr_tag_LSDU_size((struct hsr_tag *)hst);
114-
}
115-
11697
static inline void set_hsr_stag_path(struct hsr_sup_tag *hst, u16 path)
11798
{
11899
set_hsr_tag_path((struct hsr_tag *)hst, path);

0 commit comments

Comments
 (0)