diff options
author | Peng Li <lipeng321@huawei.com> | 2021-06-04 09:32:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-04 23:34:17 +0200 |
commit | 316fe3cc7de365f1c6164bbab8ef724c9ea1c6d3 (patch) | |
tree | 7efdee521e3c53556fd240364eea023f3e62f586 | |
parent | net: hdlc_x25: fix the code issue about "if..else.." (diff) | |
download | linux-316fe3cc7de365f1c6164bbab8ef724c9ea1c6d3.tar.xz linux-316fe3cc7de365f1c6164bbab8ef724c9ea1c6d3.zip |
net: hdlc_x25: fix the alignment issue
Alignment should match open parenthesis.
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>
-rw-r--r-- | drivers/net/wan/hdlc_x25.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c index bd4fad3e6ff1..d2bf72bf3bd7 100644 --- a/drivers/net/wan/hdlc_x25.c +++ b/drivers/net/wan/hdlc_x25.c @@ -315,20 +315,20 @@ static int x25_ioctl(struct net_device *dev, struct ifreq *ifr) return -EFAULT; if ((new_settings.dce != 0 && - new_settings.dce != 1) || - (new_settings.modulo != 8 && - new_settings.modulo != 128) || - new_settings.window < 1 || - (new_settings.modulo == 8 && - new_settings.window > 7) || - (new_settings.modulo == 128 && - new_settings.window > 127) || - new_settings.t1 < 1 || - new_settings.t1 > 255 || - new_settings.t2 < 1 || - new_settings.t2 > 255 || - new_settings.n2 < 1 || - new_settings.n2 > 255) + new_settings.dce != 1) || + (new_settings.modulo != 8 && + new_settings.modulo != 128) || + new_settings.window < 1 || + (new_settings.modulo == 8 && + new_settings.window > 7) || + (new_settings.modulo == 128 && + new_settings.window > 127) || + new_settings.t1 < 1 || + new_settings.t1 > 255 || + new_settings.t2 < 1 || + new_settings.t2 > 255 || + new_settings.n2 < 1 || + new_settings.n2 > 255) return -EINVAL; } |