aboutsummaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_forward.c
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2019-04-05 13:31:29 -0400
committerDavid S. Miller <davem@davemloft.net>2019-04-06 21:32:21 -0400
commit5fa9677803643f96f8eb76d2aff7966b26078187 (patch)
treecf827cb33b2bbba838b9362064cf3ad1002a9180 /net/hsr/hsr_forward.c
parent05ca6e644dc9b733379009137ba4cc7afce2256d (diff)
net: hsr: remove unnecessary space after a cast
This patch removes unnecessary space after a cast. This is seen when ran checkpatch.pl -f 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/hsr_forward.c')
-rw-r--r--net/hsr/hsr_forward.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/hsr/hsr_forward.c b/net/hsr/hsr_forward.c
index 68ca775d3be8..71ffbfd6d740 100644
--- a/net/hsr/hsr_forward.c
+++ b/net/hsr/hsr_forward.c
@@ -53,7 +53,7 @@ static bool is_supervision_frame(struct hsr_priv *hsr, struct sk_buff *skb)
53 struct hsrv1_ethhdr_sp *hsrV1Hdr; 53 struct hsrv1_ethhdr_sp *hsrV1Hdr;
54 54
55 WARN_ON_ONCE(!skb_mac_header_was_set(skb)); 55 WARN_ON_ONCE(!skb_mac_header_was_set(skb));
56 ethHdr = (struct ethhdr *) skb_mac_header(skb); 56 ethHdr = (struct ethhdr *)skb_mac_header(skb);
57 57
58 /* Correct addr? */ 58 /* Correct addr? */
59 if (!ether_addr_equal(ethHdr->h_dest, 59 if (!ether_addr_equal(ethHdr->h_dest,
@@ -67,14 +67,14 @@ static bool is_supervision_frame(struct hsr_priv *hsr, struct sk_buff *skb)
67 67
68 /* Get the supervision header from correct location. */ 68 /* Get the supervision header from correct location. */
69 if (ethHdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ 69 if (ethHdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */
70 hsrV1Hdr = (struct hsrv1_ethhdr_sp *) skb_mac_header(skb); 70 hsrV1Hdr = (struct hsrv1_ethhdr_sp *)skb_mac_header(skb);
71 if (hsrV1Hdr->hsr.encap_proto != htons(ETH_P_PRP)) 71 if (hsrV1Hdr->hsr.encap_proto != htons(ETH_P_PRP))
72 return false; 72 return false;
73 73
74 hsrSupTag = &hsrV1Hdr->hsr_sup; 74 hsrSupTag = &hsrV1Hdr->hsr_sup;
75 } else { 75 } else {
76 hsrSupTag = 76 hsrSupTag =
77 &((struct hsrv0_ethhdr_sp *) skb_mac_header(skb))->hsr_sup; 77 &((struct hsrv0_ethhdr_sp *)skb_mac_header(skb))->hsr_sup;
78 } 78 }
79 79
80 if (hsrSupTag->HSR_TLV_Type != HSR_TLV_ANNOUNCE && 80 if (hsrSupTag->HSR_TLV_Type != HSR_TLV_ANNOUNCE &&
@@ -140,7 +140,7 @@ static void hsr_fill_tag(struct sk_buff *skb, struct hsr_frame_info *frame,
140 if (frame->is_vlan) 140 if (frame->is_vlan)
141 lsdu_size -= 4; 141 lsdu_size -= 4;
142 142
143 hsr_ethhdr = (struct hsr_ethhdr *) skb_mac_header(skb); 143 hsr_ethhdr = (struct hsr_ethhdr *)skb_mac_header(skb);
144 144
145 set_hsr_tag_path(&hsr_ethhdr->hsr_tag, lane_id); 145 set_hsr_tag_path(&hsr_ethhdr->hsr_tag, lane_id);
146 set_hsr_tag_LSDU_size(&hsr_ethhdr->hsr_tag, lsdu_size); 146 set_hsr_tag_LSDU_size(&hsr_ethhdr->hsr_tag, lsdu_size);
@@ -320,7 +320,7 @@ static int hsr_fill_frame_info(struct hsr_frame_info *frame,
320 if (!frame->node_src) 320 if (!frame->node_src)
321 return -1; /* Unknown node and !is_supervision, or no mem */ 321 return -1; /* Unknown node and !is_supervision, or no mem */
322 322
323 ethhdr = (struct ethhdr *) skb_mac_header(skb); 323 ethhdr = (struct ethhdr *)skb_mac_header(skb);
324 frame->is_vlan = false; 324 frame->is_vlan = false;
325 if (ethhdr->h_proto == htons(ETH_P_8021Q)) { 325 if (ethhdr->h_proto == htons(ETH_P_8021Q)) {
326 frame->is_vlan = true; 326 frame->is_vlan = true;