Commit d3af9dd0 authored by David S. Miller's avatar David S. Miller

cxgb3i: Fix flags test.

As noticed by Stephen Rothwell.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a4b751d8
......@@ -1442,7 +1442,7 @@ static int is_cxgb3_dev(struct net_device *dev)
struct cxgb3i_sdev_data *cdata;
struct net_device *ndev = dev;
if (dev->priv_flags && IFF_802_1Q_VLAN)
if (dev->priv_flags & IFF_802_1Q_VLAN)
ndev = vlan_dev_real_dev(dev);
write_lock(&cdata_rwlock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment