]> Git Repo - linux.git/commitdiff
net: hsr: fix lines that ends with a '('
authorMurali Karicheri <[email protected]>
Fri, 5 Apr 2019 17:31:27 +0000 (13:31 -0400)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/hsr/hsr_device.c
net/hsr/hsr_main.h

index 0aea1bd09526c47addb4b936118ead83849fa5dc..567c890f08a5b2f4d71d7a0127198555371b5cb6 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 3504f064794210fb8724e390c0b9a325207457f8..1b640731d7055ab0ea3c19593025e492e3eb0e06 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 {
This page took 0.059331 seconds and 4 git commands to generate.