projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50eb6c
)
net: hdlc: add braces {} to all arms of the statement
author
Peng Li
<lipeng321@huawei.com>
Tue, 1 Jun 2021 13:23:22 +0000
(21:23 +0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/wan/hdlc.c
b/drivers/net/wan/hdlc.c
index f48d70e7f3ba1c71ede43de6b415983b0ea54d09..dd6312b69861da355a5ad53db7aed4ce250eef31 100644
(file)
--- 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;