hdlx_x25: Fix backwards compat test.
authorDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 11:02:25 +0000 (12:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 11:02:25 +0000 (12:02 +0100)
drivers/net/wan/hdlc_x25.c: In function ‘x25_ioctl’:
drivers/net/wan/hdlc_x25.c:256:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  256 |   if (ifr->ifr_settings.size = 0) {
      |       ^~~

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/hdlc_x25.c

index 63c9aeed9a348ac5b6b86a2f1c0fe92a85b3f124..c84536b03aa84e5cce1637238ce065512dc7b390 100644 (file)
@@ -253,7 +253,7 @@ static int x25_ioctl(struct net_device *dev, struct ifreq *ifr)
                        return -EBUSY;
 
                /* backward compatibility */
-               if (ifr->ifr_settings.size = 0) {
+               if (ifr->ifr_settings.size == 0) {
                        new_settings.dce = 0;
                        new_settings.modulo = 8;
                        new_settings.window = 7;