aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/nes/nes_verbs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
index f04bb1a5da45..504e31d9f50c 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -1895,8 +1895,7 @@ static int nes_destroy_cq(struct ib_cq *ib_cq)
1895static u32 root_256(struct nes_device *nesdev, 1895static u32 root_256(struct nes_device *nesdev,
1896 struct nes_root_vpbl *root_vpbl, 1896 struct nes_root_vpbl *root_vpbl,
1897 struct nes_root_vpbl *new_root, 1897 struct nes_root_vpbl *new_root,
1898 u16 pbl_count_4k, 1898 u16 pbl_count_4k)
1899 u16 pbl_count_256)
1900{ 1899{
1901 u64 leaf_pbl; 1900 u64 leaf_pbl;
1902 int i, j, k; 1901 int i, j, k;
@@ -2012,7 +2011,7 @@ static int nes_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd,
2012 } 2011 }
2013 2012
2014 if (use_256_pbls && use_two_level) { 2013 if (use_256_pbls && use_two_level) {
2015 if (root_256(nesdev, root_vpbl, &new_root, pbl_count_4k, pbl_count_256) == 1) { 2014 if (root_256(nesdev, root_vpbl, &new_root, pbl_count_4k) == 1) {
2016 if (new_root.pbl_pbase != 0) 2015 if (new_root.pbl_pbase != 0)
2017 root_vpbl = &new_root; 2016 root_vpbl = &new_root;
2018 } else { 2017 } else {