summaryrefslogtreecommitdiffstats
path: root/drivers
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 /drivers
parenta4b751d87241c1b49ce43f819428223bfc22dc27 (diff)
downloadop-kernel-dev-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.zip
op-kernel-dev-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.tar.gz
cxgb3i: Fix flags test.
As noticed by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-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 4b8a513..7449d46 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);
OpenPOWER on IntegriCloud