net: hdlc: add braces {} to all arms of the statement
Braces {} should be used on all arms of this statement. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
e50eb6c357
Коммит
1bb5218252
|
@ -163,8 +163,9 @@ int hdlc_open(struct net_device *dev)
|
|||
if (hdlc->carrier) {
|
||||
netdev_info(dev, "Carrier detected\n");
|
||||
hdlc_proto_start(dev);
|
||||
} else
|
||||
} else {
|
||||
netdev_info(dev, "No carrier\n");
|
||||
}
|
||||
|
||||
hdlc->open = 1;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче