Skip to content

Commit

Permalink
net: hsr: fix lines that ends with a '('
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Murali Karicheri authored and David S. Miller committed Apr 7, 2019
1 parent 4fe25bd commit 0525fc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions net/hsr/hsr_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,9 @@ static void send_hsr_supervision_frame(struct hsr_port *master,

hlen = LL_RESERVED_SPACE(master->dev);
tlen = master->dev->needed_tailroom;
skb = dev_alloc_skb(
sizeof(struct hsr_tag) +
sizeof(struct hsr_sup_tag) +
sizeof(struct hsr_sup_payload) + hlen + tlen);
skb = dev_alloc_skb(sizeof(struct hsr_tag) +
sizeof(struct hsr_sup_tag) +
sizeof(struct hsr_sup_payload) + hlen + tlen);

if (skb == NULL)
return;
Expand Down
5 changes: 2 additions & 3 deletions net/hsr/hsr_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path)

static inline void set_hsr_tag_LSDU_size(struct hsr_tag *ht, u16 LSDU_size)
{
ht->path_and_LSDU_size = htons(
(ntohs(ht->path_and_LSDU_size) & 0xF000) |
(LSDU_size & 0x0FFF));
ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) &
0xF000) | (LSDU_size & 0x0FFF));
}

struct hsr_ethhdr {
Expand Down

0 comments on commit 0525fc0

Please sign in to comment.