Skip to content

Commit c9a2ca5

Browse files
321lipengkuba-moo
authored andcommitted
net: hdlc_fr: remove redundant braces {}
This patch removes redundant braces {}, to fix the checkpatch.pl warning: "braces {} are not necessary for any arm 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 5d650a6 commit c9a2ca5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/wan/hdlc_fr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,11 @@ static void fr_lmi_send(struct net_device *dev, int fullrep)
480480
}
481481
memset(skb->data, 0, len);
482482
skb_reserve(skb, 4);
483-
if (lmi == LMI_CISCO) {
483+
if (lmi == LMI_CISCO)
484484
fr_hard_header(skb, LMI_CISCO_DLCI);
485-
} else {
485+
else
486486
fr_hard_header(skb, LMI_CCITT_ANSI_DLCI);
487-
}
487+
488488
data = skb_tail_pointer(skb);
489489
data[i++] = LMI_CALLREF;
490490
data[i++] = dce ? LMI_STATUS : LMI_STATUS_ENQUIRY;

0 commit comments

Comments
 (0)