提交 d3af9dd0 编写于 作者: D David S. Miller

cxgb3i: Fix flags test.

As noticed by Stephen Rothwell.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a4b751d8
...@@ -1442,7 +1442,7 @@ static int is_cxgb3_dev(struct net_device *dev) ...@@ -1442,7 +1442,7 @@ static int is_cxgb3_dev(struct net_device *dev)
struct cxgb3i_sdev_data *cdata; struct cxgb3i_sdev_data *cdata;
struct net_device *ndev = dev; 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); ndev = vlan_dev_real_dev(dev);
write_lock(&cdata_rwlock); write_lock(&cdata_rwlock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册