net: hdlc_x25: fix the alignment issue
authorPeng Li <lipeng321@huawei.com>
Fri, 4 Jun 2021 07:32:12 +0000 (15:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jun 2021 21:34:17 +0000 (14:34 -0700)
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>
drivers/net/wan/hdlc_x25.c

index bd4fad3..d2bf72b 100644 (file)
@@ -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;
                }