Commit 5d650a6c authored by Peng Li's avatar Peng Li Committed by Jakub Kicinski

net: hdlc_fr: add braces {} to all arms of the statement

Braces {} should be used on all arms of this statement.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8f032c65
...@@ -613,10 +613,10 @@ static void fr_timer(struct timer_list *t) ...@@ -613,10 +613,10 @@ static void fr_timer(struct timer_list *t)
fr_set_link_state(reliable, dev); fr_set_link_state(reliable, dev);
} }
if (state(hdlc)->settings.dce) if (state(hdlc)->settings.dce) {
state(hdlc)->timer.expires = jiffies + state(hdlc)->timer.expires = jiffies +
state(hdlc)->settings.t392 * HZ; state(hdlc)->settings.t392 * HZ;
else { } else {
if (state(hdlc)->n391cnt) if (state(hdlc)->n391cnt)
state(hdlc)->n391cnt--; state(hdlc)->n391cnt--;
...@@ -671,8 +671,9 @@ static int fr_lmi_recv(struct net_device *dev, struct sk_buff *skb) ...@@ -671,8 +671,9 @@ static int fr_lmi_recv(struct net_device *dev, struct sk_buff *skb)
return 1; return 1;
} }
i = 7; i = 7;
} else } else {
i = 6; i = 6;
}
if (skb->data[i] != (lmi == LMI_CCITT ? LMI_CCITT_REPTYPE : if (skb->data[i] != (lmi == LMI_CCITT ? LMI_CCITT_REPTYPE :
LMI_ANSI_CISCO_REPTYPE)) { LMI_ANSI_CISCO_REPTYPE)) {
...@@ -1013,8 +1014,9 @@ static void fr_start(struct net_device *dev) ...@@ -1013,8 +1014,9 @@ static void fr_start(struct net_device *dev)
/* First poll after 1 s */ /* First poll after 1 s */
state(hdlc)->timer.expires = jiffies + HZ; state(hdlc)->timer.expires = jiffies + HZ;
add_timer(&state(hdlc)->timer); add_timer(&state(hdlc)->timer);
} else } else {
fr_set_link_state(1, dev); fr_set_link_state(1, dev);
}
} }
static void fr_stop(struct net_device *dev) static void fr_stop(struct net_device *dev)
......
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