diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-04 22:36:40 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-04 22:36:40 (GMT) |
commit | d3af9dd04f8795dc2761ecfa56632e4d0df0dae2 (patch) | |
tree | 143d8ddf4d1de4fb4e078609c18fe25de6cbb772 | |
parent | a4b751d87241c1b49ce43f819428223bfc22dc27 (diff) | |
download | linux-d3af9dd04f8795dc2761ecfa56632e4d0df0dae2.tar.xz |
cxgb3i: Fix flags test.
As noticed by Stephen Rothwell.
Signed-off-by: David S. Miller <davem@davemloft.net>
-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 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); |