aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-01-04 14:36:40 -0800
committerDavid S. Miller <davem@davemloft.net>2010-01-04 14:36:40 -0800
commitd3af9dd04f8795dc2761ecfa56632e4d0df0dae2 (patch)
tree143d8ddf4d1de4fb4e078609c18fe25de6cbb772
parentnetxen: fix ethtool link test (diff)
downloadlinux-dev-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.tar.xz
linux-dev-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.zip
cxgb3i: Fix flags test.
As noticed by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/cxgb3i/cxgb3i_offload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/cxgb3i/cxgb3i_offload.c b/drivers/scsi/cxgb3i/cxgb3i_offload.c
index 4b8a5133d69d..7449d465bc17 100644
--- a/drivers/scsi/cxgb3i/cxgb3i_offload.c
+++ b/drivers/scsi/cxgb3i/cxgb3i_offload.c
@@ -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);