提交 c9a2ca5d 编写于 作者: P Peng Li 提交者: Jakub Kicinski

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: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 5d650a6c
...@@ -480,11 +480,11 @@ static void fr_lmi_send(struct net_device *dev, int fullrep) ...@@ -480,11 +480,11 @@ static void fr_lmi_send(struct net_device *dev, int fullrep)
} }
memset(skb->data, 0, len); memset(skb->data, 0, len);
skb_reserve(skb, 4); skb_reserve(skb, 4);
if (lmi == LMI_CISCO) { if (lmi == LMI_CISCO)
fr_hard_header(skb, LMI_CISCO_DLCI); fr_hard_header(skb, LMI_CISCO_DLCI);
} else { else
fr_hard_header(skb, LMI_CCITT_ANSI_DLCI); fr_hard_header(skb, LMI_CCITT_ANSI_DLCI);
}
data = skb_tail_pointer(skb); data = skb_tail_pointer(skb);
data[i++] = LMI_CALLREF; data[i++] = LMI_CALLREF;
data[i++] = dce ? LMI_STATUS : LMI_STATUS_ENQUIRY; data[i++] = dce ? LMI_STATUS : LMI_STATUS_ENQUIRY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部