]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: hdlc: add braces {} to all arms of the statement
authorPeng Li <lipeng321@huawei.com>
Tue, 1 Jun 2021 13:23:22 +0000 (21:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2021 23:57:47 +0000 (16:57 -0700)
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>
drivers/net/wan/hdlc.c

index f48d70e7f3ba1c71ede43de6b415983b0ea54d09..dd6312b69861da355a5ad53db7aed4ce250eef31 100644 (file)
@@ -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;