aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-04-12 10:50:16 -0700
committerDoug Ledford <dledford@redhat.com>2016-04-28 16:32:27 -0400
commit35969d9b949a479bebc72cf8049425cd05b3b28e (patch)
tree2b98850f31ca3e2a55244a716c2b85a67ed242f2 /drivers/staging/rdma
parentIB/hfi1: Fix QOS num_vl bit width (diff)
downloadlinux-dev-35969d9b949a479bebc72cf8049425cd05b3b28e.tar.xz
linux-dev-35969d9b949a479bebc72cf8049425cd05b3b28e.zip
IB/hfi1: Remove invalid QOS check
Remove an invalid compare of the number of QOS RSM map table entries against the number of physical receive contexts. The RSM map table has its own size and has no relation to the number of physical receive contexts. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma')
-rw-r--r--drivers/staging/rdma/hfi1/chip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c
index f1efbe56536a..8b54d66cfc50 100644
--- a/drivers/staging/rdma/hfi1/chip.c
+++ b/drivers/staging/rdma/hfi1/chip.c
@@ -13513,8 +13513,6 @@ static void init_qos(struct hfi1_devdata *dd, u32 first_ctxt)
m = ilog2(qpns_per_vl);
if ((m + n) > 7)
goto bail;
- if (num_vls * qpns_per_vl > dd->chip_rcv_contexts)
- goto bail;
rsmmap = kmalloc_array(NUM_MAP_REGS, sizeof(u64), GFP_KERNEL);
if (!rsmmap)
goto bail;