Commit d131fcc6 authored by Murali Karicheri's avatar Murali Karicheri Committed by David S. Miller

net: hsr: add missing space around operator in code

This patch add missing space around operator in code. This is
seen when ran checkpatch.pl -f on files under net/hsr.
Signed-off-by: default avatarMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 05947783
...@@ -105,7 +105,7 @@ static struct sk_buff *create_stripped_skb(struct sk_buff *skb_in, ...@@ -105,7 +105,7 @@ static struct sk_buff *create_stripped_skb(struct sk_buff *skb_in,
if (skb->ip_summed == CHECKSUM_PARTIAL) if (skb->ip_summed == CHECKSUM_PARTIAL)
skb->csum_start -= HSR_HLEN; skb->csum_start -= HSR_HLEN;
copylen = 2*ETH_ALEN; copylen = 2 * ETH_ALEN;
if (frame->is_vlan) if (frame->is_vlan)
copylen += VLAN_HLEN; copylen += VLAN_HLEN;
src = skb_mac_header(skb_in); src = skb_mac_header(skb_in);
......
...@@ -385,9 +385,9 @@ void hsr_prune_nodes(struct timer_list *t) ...@@ -385,9 +385,9 @@ void hsr_prune_nodes(struct timer_list *t)
time_b = node->time_in[HSR_PT_SLAVE_B]; time_b = node->time_in[HSR_PT_SLAVE_B];
/* Check for timestamps old enough to risk wrap-around */ /* Check for timestamps old enough to risk wrap-around */
if (time_after(jiffies, time_a + MAX_JIFFY_OFFSET/2)) if (time_after(jiffies, time_a + MAX_JIFFY_OFFSET / 2))
node->time_in_stale[HSR_PT_SLAVE_A] = true; node->time_in_stale[HSR_PT_SLAVE_A] = true;
if (time_after(jiffies, time_b + MAX_JIFFY_OFFSET/2)) if (time_after(jiffies, time_b + MAX_JIFFY_OFFSET / 2))
node->time_in_stale[HSR_PT_SLAVE_B] = true; node->time_in_stale[HSR_PT_SLAVE_B] = true;
/* Get age of newest frame from node. /* Get age of newest frame from node.
...@@ -402,7 +402,7 @@ void hsr_prune_nodes(struct timer_list *t) ...@@ -402,7 +402,7 @@ void hsr_prune_nodes(struct timer_list *t)
/* Warn of ring error only as long as we get frames at all */ /* Warn of ring error only as long as we get frames at all */
if (time_is_after_jiffies(timestamp + if (time_is_after_jiffies(timestamp +
msecs_to_jiffies(1.5*MAX_SLAVE_DIFF))) { msecs_to_jiffies(1.5 * MAX_SLAVE_DIFF))) {
rcu_read_lock(); rcu_read_lock();
port = get_late_port(hsr, node); port = get_late_port(hsr, node);
if (port) if (port)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment