diff options
author | Peng Li <lipeng321@huawei.com> | 2021-06-04 15:32:11 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-04 14:34:17 -0700 |
commit | 792b070fca8fc945c2be7f9dd965d79c238d81c7 (patch) | |
tree | 67f7e497bd558b3d2c604af920a6681a0026c647 /drivers/net/wan/hdlc_x25.c | |
parent | 5de446075c8e8c218302f8f819db88ccf0584aed (diff) | |
download | linux-stable-792b070fca8fc945c2be7f9dd965d79c238d81c7.tar.gz linux-stable-792b070fca8fc945c2be7f9dd965d79c238d81c7.tar.bz2 linux-stable-792b070fca8fc945c2be7f9dd965d79c238d81c7.zip |
net: hdlc_x25: fix the code issue about "if..else.."
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>
Diffstat (limited to 'drivers/net/wan/hdlc_x25.c')
-rw-r--r-- | drivers/net/wan/hdlc_x25.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c index 4e771f789e10..bd4fad3e6ff1 100644 --- 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; |