OSDN Git Service

net: hsr: fix lines that ends with a '('
authorMurali Karicheri <m-karicheri2@ti.com>
Fri, 5 Apr 2019 17:31:27 +0000 (13:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2019 01:32:21 +0000 (18:32 -0700)
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>
net/hsr/hsr_device.c
net/hsr/hsr_main.h

index 0aea1bd..567c890 100644 (file)
@@ -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;
index 3504f06..1b64073 100644 (file)
@@ -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 {