diff options
author | David S. Miller <davem@davemloft.net> | 2020-01-21 12:02:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-21 12:02:25 +0100 |
commit | e09538eac996e11d36027cb546a9ac50d07edeb1 (patch) | |
tree | ec22d86857832e691bae7b9cd675a9ce7961db8c /drivers/net/wan | |
parent | 0159984796dc66ab6dc1a7cbd891e8f6bca640dd (diff) |
hdlx_x25: Fix backwards compat test.
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>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/hdlc_x25.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c index 63c9aeed9a34..c84536b03aa8 100644 --- a/drivers/net/wan/hdlc_x25.c +++ b/drivers/net/wan/hdlc_x25.c @@ -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; |