diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-04 17:36:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-04 17:36:40 -0500 |
commit | d3af9dd04f8795dc2761ecfa56632e4d0df0dae2 (patch) | |
tree | 143d8ddf4d1de4fb4e078609c18fe25de6cbb772 /drivers | |
parent | a4b751d87241c1b49ce43f819428223bfc22dc27 (diff) |
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.c | 2 |
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) | |||
1442 | struct cxgb3i_sdev_data *cdata; | 1442 | struct cxgb3i_sdev_data *cdata; |
1443 | struct net_device *ndev = dev; | 1443 | struct net_device *ndev = dev; |
1444 | 1444 | ||
1445 | if (dev->priv_flags && IFF_802_1Q_VLAN) | 1445 | if (dev->priv_flags & IFF_802_1Q_VLAN) |
1446 | ndev = vlan_dev_real_dev(dev); | 1446 | ndev = vlan_dev_real_dev(dev); |
1447 | 1447 | ||
1448 | write_lock(&cdata_rwlock); | 1448 | write_lock(&cdata_rwlock); |