aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes
diff options
context:
space:
mode:
authorChien Tung <chien.tin.tung@intel.com>2009-04-20 17:50:36 -0400
committerRoland Dreier <rolandd@cisco.com>2009-04-20 17:50:36 -0400
commit1af9222b5223a7b04102dc8c403fa55fa15d5184 (patch)
tree67a94d7fa273da026dc3601cc15f95e7a74660f4 /drivers/infiniband/hw/nes
parenta939b96cccdb65df80a52447ec8e4a6d79c56dbb (diff)
RDMA/nes: Fix compiler warning at nes_verbs.c:1955
Initialize pbl_count_256 to 0 to get rid of the warning: drivers/infiniband/hw/nes/nes_verbs.c: In function 'nes_reg_mr': drivers/infiniband/hw/nes/nes_verbs.c:1955: warning: 'pbl_count_256' may be used uninitialized in this function Reported-by: Roland Dreier <rdreier@cisco.com> Signed-off-by: Chien Tung <chien.tin.tung@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes')
-rw-r--r--drivers/infiniband/hw/nes/nes_verbs.c2
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 7e5b5ba13a7..9279d056185 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -1952,7 +1952,7 @@ static int nes_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd,
1952 int ret; 1952 int ret;
1953 struct nes_adapter *nesadapter = nesdev->nesadapter; 1953 struct nes_adapter *nesadapter = nesdev->nesadapter;
1954 uint pg_cnt = 0; 1954 uint pg_cnt = 0;
1955 u16 pbl_count_256; 1955 u16 pbl_count_256 = 0;
1956 u16 pbl_count = 0; 1956 u16 pbl_count = 0;
1957 u8 use_256_pbls = 0; 1957 u8 use_256_pbls = 0;
1958 u8 use_4k_pbls = 0; 1958 u8 use_4k_pbls = 0;