summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/i40iw/i40iw_uk.c
diff options
context:
space:
mode:
authorHenry Orosco <henry.orosco@intel.com>2016-11-09 21:32:03 -0600
committerDoug Ledford <dledford@redhat.com>2016-12-05 16:09:36 -0500
commit799749979dbf41a878a00abdae00cf484c21a5b2 (patch)
treea5a5a0528460c0990290705281ddb97666dfb33d /drivers/infiniband/hw/i40iw/i40iw_uk.c
parent85a87c90ee90217da1b05a77bbb47ebe31a2f124 (diff)
downloadlinux-799749979dbf41a878a00abdae00cf484c21a5b2.tar.bz2
i40iw: Remove checks for more than 48 bytes inline data
Remove dead code, which isn't executed because we return error if the data size is greater than 48 bytes. Inline data size greater than 48 bytes isn't supported and the maximum WQE size is 64 bytes. Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Signed-off-by: Henry Orosco <henry.orosco@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_uk.c')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_uk.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_uk.c b/drivers/infiniband/hw/i40iw/i40iw_uk.c
index 47cb2e063ee3..5d9c3bfb7310 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_uk.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_uk.c
@@ -1186,12 +1186,8 @@ enum i40iw_status_code i40iw_inline_data_size_to_wqesize(u32 data_size,
if (data_size <= 16)
*wqe_size = I40IW_QP_WQE_MIN_SIZE;
- else if (data_size <= 48)
- *wqe_size = 64;
- else if (data_size <= 80)
- *wqe_size = 96;
else
- *wqe_size = 128;
+ *wqe_size = 64;
return 0;
}