diff options
author | Murali Karicheri <m-karicheri2@ti.com> | 2019-04-05 13:31:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-06 21:32:21 -0400 |
commit | 0525fc069f03dfd871752eb7afc85075444c8b28 (patch) | |
tree | 679a9e5341dd31980b7ccd14b644a7fc34d1410b /net/hsr | |
parent | 4fe25bd8c3e74519e3a0682b001d248fdf23838b (diff) |
net: hsr: fix lines that ends with a '('
This patch fixes function calls that ends with '(' in a line.
This is seen when ran checkpatch.pl -f option on files under
net/hsr.
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr')
-rw-r--r-- | net/hsr/hsr_device.c | 7 | ||||
-rw-r--r-- | net/hsr/hsr_main.h | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/net/hsr/hsr_device.c b/net/hsr/hsr_device.c index 0aea1bd09526..567c890f08a5 100644 --- a/net/hsr/hsr_device.c +++ b/net/hsr/hsr_device.c | |||
@@ -254,10 +254,9 @@ static void send_hsr_supervision_frame(struct hsr_port *master, | |||
254 | 254 | ||
255 | hlen = LL_RESERVED_SPACE(master->dev); | 255 | hlen = LL_RESERVED_SPACE(master->dev); |
256 | tlen = master->dev->needed_tailroom; | 256 | tlen = master->dev->needed_tailroom; |
257 | skb = dev_alloc_skb( | 257 | skb = dev_alloc_skb(sizeof(struct hsr_tag) + |
258 | sizeof(struct hsr_tag) + | 258 | sizeof(struct hsr_sup_tag) + |
259 | sizeof(struct hsr_sup_tag) + | 259 | sizeof(struct hsr_sup_payload) + hlen + tlen); |
260 | sizeof(struct hsr_sup_payload) + hlen + tlen); | ||
261 | 260 | ||
262 | if (skb == NULL) | 261 | if (skb == NULL) |
263 | return; | 262 | return; |
diff --git a/net/hsr/hsr_main.h b/net/hsr/hsr_main.h index 3504f0647942..1b640731d705 100644 --- a/net/hsr/hsr_main.h +++ b/net/hsr/hsr_main.h | |||
@@ -84,9 +84,8 @@ static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) | |||
84 | 84 | ||
85 | static inline void set_hsr_tag_LSDU_size(struct hsr_tag *ht, u16 LSDU_size) | 85 | static inline void set_hsr_tag_LSDU_size(struct hsr_tag *ht, u16 LSDU_size) |
86 | { | 86 | { |
87 | ht->path_and_LSDU_size = htons( | 87 | ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & |
88 | (ntohs(ht->path_and_LSDU_size) & 0xF000) | | 88 | 0xF000) | (LSDU_size & 0x0FFF)); |
89 | (LSDU_size & 0x0FFF)); | ||
90 | } | 89 | } |
91 | 90 | ||
92 | struct hsr_ethhdr { | 91 | struct hsr_ethhdr { |