diff options
author | Or Gerlitz <ogerlitz@voltaire.com> | 2010-07-20 08:00:20 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-08-04 13:00:34 -0400 |
commit | 812d8672218e71fe3ea249f16ad990978dc3bb84 (patch) | |
tree | 4b2fef9e7714c2e524c7e6cb7711310c9d03d360 /drivers/infiniband/hw/nes/nes_verbs.c | |
parent | cd6860eb036ab4320d591fdd056f86172438fae4 (diff) |
RDMA/nes: Fix two sparse warnings
Simple changes to fix warnings:
CHECK drivers/infiniband/hw/nes/nes_verbs.c
nes_verbs.c:1944:45: warning: Using plain integer as NULL pointer
nes_verbs.c:1944:48: warning: Using plain integer as NULL pointer
CHECK drivers/infiniband/hw/nes/nes_cm.c
nes_cm.c:2645:43: warning: mixing different enum types
nes_cm.c:2645:43: int enum iw_cm_event_type versus
nes_cm.c:2645:43: int enum iw_cm_event_status
Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Acked-by: Chien Tung <chien.tin.tung@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 3b95d0473b7..3b50dc521b9 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -1941,7 +1941,7 @@ static int nes_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd, | |||
1941 | u8 use_256_pbls = 0; | 1941 | u8 use_256_pbls = 0; |
1942 | u8 use_4k_pbls = 0; | 1942 | u8 use_4k_pbls = 0; |
1943 | u16 use_two_level = (pbl_count_4k > 1) ? 1 : 0; | 1943 | u16 use_two_level = (pbl_count_4k > 1) ? 1 : 0; |
1944 | struct nes_root_vpbl new_root = {0, 0, 0}; | 1944 | struct nes_root_vpbl new_root = { 0, NULL, NULL }; |
1945 | u32 opcode = 0; | 1945 | u32 opcode = 0; |
1946 | u16 major_code; | 1946 | u16 major_code; |
1947 | 1947 | ||