summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_addr.h
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2011-12-06 22:13:10 +0100
committerRoland Dreier <roland@purestorage.com>2012-01-04 18:17:45 +0100
commitc89d1bedf8b130d5b20f56a484989a19a2c2842a (patch)
treeac1e78a8213553335639f21eb8bac4da534c13f2 /include/rdma/ib_addr.h
parentRDMA/cma: Fix endianness bugs (diff)
downloadlinux-c89d1bedf8b130d5b20f56a484989a19a2c2842a.tar.xz
linux-c89d1bedf8b130d5b20f56a484989a19a2c2842a.zip
rdma/core: Fix sparse warnings
Clean up sparse warnings in the rdma core layer. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma/ib_addr.h')
-rw-r--r--include/rdma/ib_addr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h
index 639a4491fc0d..99965395c5f3 100644
--- a/include/rdma/ib_addr.h
+++ b/include/rdma/ib_addr.h
@@ -281,7 +281,7 @@ static inline u16 rdma_get_vlan_id(union ib_gid *dgid)
static inline struct net_device *rdma_vlan_dev_real_dev(const struct net_device *dev)
{
return dev->priv_flags & IFF_802_1Q_VLAN ?
- vlan_dev_real_dev(dev) : 0;
+ vlan_dev_real_dev(dev) : NULL;
}
#endif /* IB_ADDR_H */