Skip to content

Commit 5d650a6

Browse files
321lipengkuba-moo
authored andcommitted
net: hdlc_fr: add braces {} to all arms of the statement
Braces {} should be used on all arms of this statement. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8f032c6 commit 5d650a6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/net/wan/hdlc_fr.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,10 @@ static void fr_timer(struct timer_list *t)
613613
fr_set_link_state(reliable, dev);
614614
}
615615

616-
if (state(hdlc)->settings.dce)
616+
if (state(hdlc)->settings.dce) {
617617
state(hdlc)->timer.expires = jiffies +
618618
state(hdlc)->settings.t392 * HZ;
619-
else {
619+
} else {
620620
if (state(hdlc)->n391cnt)
621621
state(hdlc)->n391cnt--;
622622

@@ -671,8 +671,9 @@ static int fr_lmi_recv(struct net_device *dev, struct sk_buff *skb)
671671
return 1;
672672
}
673673
i = 7;
674-
} else
674+
} else {
675675
i = 6;
676+
}
676677

677678
if (skb->data[i] != (lmi == LMI_CCITT ? LMI_CCITT_REPTYPE :
678679
LMI_ANSI_CISCO_REPTYPE)) {
@@ -1013,8 +1014,9 @@ static void fr_start(struct net_device *dev)
10131014
/* First poll after 1 s */
10141015
state(hdlc)->timer.expires = jiffies + HZ;
10151016
add_timer(&state(hdlc)->timer);
1016-
} else
1017+
} else {
10171018
fr_set_link_state(1, dev);
1019+
}
10181020
}
10191021

10201022
static void fr_stop(struct net_device *dev)

0 commit comments

Comments
 (0)