mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
cxgb3i: Fix flags test.
As noticed by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a4b751d872
commit
d3af9dd04f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user