diff options
author | Cong Ding <dinggnu@gmail.com> | 2013-02-04 17:18:06 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-04-17 01:45:33 -0400 |
commit | bc4ba94ce792f6444daf47b39fe8023428ac25b5 (patch) | |
tree | debc634592599e2f48ce4315343a852b20e22689 /drivers/infiniband | |
parent | 41ef2d5678d83af030125550329b6ae8b74618fa (diff) |
RDMA/cxgb3: Fix uninitialized variable
The variable npages might be used uninitialized.
Signed-off-by: Cong Ding <dinggnu@gmail.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index 9c12da0cbd32..e87f2201b220 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c | |||
@@ -559,7 +559,7 @@ static int iwch_reregister_phys_mem(struct ib_mr *mr, | |||
559 | __be64 *page_list = NULL; | 559 | __be64 *page_list = NULL; |
560 | int shift = 0; | 560 | int shift = 0; |
561 | u64 total_size; | 561 | u64 total_size; |
562 | int npages; | 562 | int npages = 0; |
563 | int ret; | 563 | int ret; |
564 | 564 | ||
565 | PDBG("%s ib_mr %p ib_pd %p\n", __func__, mr, pd); | 565 | PDBG("%s ib_mr %p ib_pd %p\n", __func__, mr, pd); |