summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-06-01 16:23:22 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-02 02:57:47 +0300
commit1bb52182526552e31367ea521cf36d37ebb26966 (patch)
treeba691a13ed24f97f456770f157070ec6f1263515 /drivers
parente50eb6c3578c6bd7c43c30bfa40a882f0815a2d2 (diff)
downloadlinux-1bb52182526552e31367ea521cf36d37ebb26966.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wan/hdlc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wan/hdlc.c b/drivers/net/wan/hdlc.c
index f48d70e7f3ba..dd6312b69861 100644
--- a/drivers/net/wan/hdlc.c
+++ b/drivers/net/wan/hdlc.c
@@ -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;