OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5de4460
)
net: hdlc_x25: fix the code issue about "if..else.."
author
Peng Li
<lipeng321@huawei.com>
Fri, 4 Jun 2021 07:32:11 +0000
(15:32 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 4 Jun 2021 21:34:17 +0000
(14:34 -0700)
According to the chackpatch.pl, else should follow close brace '}'.
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_x25.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/hdlc_x25.c
b/drivers/net/wan/hdlc_x25.c
index
4e771f7
..
bd4fad3
100644
(file)
--- a/
drivers/net/wan/hdlc_x25.c
+++ b/
drivers/net/wan/hdlc_x25.c
@@
-310,8
+310,7
@@
static int x25_ioctl(struct net_device *dev, struct ifreq *ifr)
new_settings.t1 = 3;
new_settings.t2 = 1;
new_settings.n2 = 10;
- }
- else {
+ } else {
if (copy_from_user(&new_settings, x25_s, size))
return -EFAULT;