Skip to content

Commit

Permalink
net: hdlc: add braces {} to all arms of the statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peng Li authored and David S. Miller committed Jun 1, 2021
1 parent e50eb6c commit 1bb5218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wan/hdlc.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 1bb5218

Please sign in to comment.