diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-04 14:36:40 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-04 14:36:40 -0800 |
commit | d3af9dd04f8795dc2761ecfa56632e4d0df0dae2 (patch) | |
tree | 143d8ddf4d1de4fb4e078609c18fe25de6cbb772 /drivers | |
parent | a4b751d87241c1b49ce43f819428223bfc22dc27 (diff) | |
download | kernel-crypto-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.tar.gz kernel-crypto-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.tar.xz kernel-crypto-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.zip |
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 4b8a5133d69..7449d465bc1 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); |