Skip to content

Commit 1bb5218

Browse files
321lipengdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e50eb6c commit 1bb5218

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/wan/hdlc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ int hdlc_open(struct net_device *dev)
163163
if (hdlc->carrier) {
164164
netdev_info(dev, "Carrier detected\n");
165165
hdlc_proto_start(dev);
166-
} else
166+
} else {
167167
netdev_info(dev, "No carrier\n");
168+
}
168169

169170
hdlc->open = 1;
170171

0 commit comments

Comments
 (0)