rdma/cxgb4: Remove a set-but-not-used variable

This patch avoids that the following warning is reported when building with
W=1:

drivers/infiniband/hw/cxgb4/cm.c:1860:5: warning: variable 'status' set but not used [-Wunused-but-set-variable]
  u8 status;
     ^~~~~~

Fixes: 6a0b6174d3 ("rdma/cxgb4: Add support for kernel mode SRQ's")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Bart Van Assche 2018-07-31 08:08:15 -07:00 committed by Jason Gunthorpe
parent 8546331651
commit 7810e09bfb

View File

@ -1857,10 +1857,8 @@ static void complete_cached_srq_buffers(struct c4iw_ep *ep, u32 srqidx_status)
{
enum chip_type adapter_type;
u32 srqidx;
u8 status;
adapter_type = ep->com.dev->rdev.lldi.adapter_type;
status = ABORT_RSS_STATUS_G(be32_to_cpu(srqidx_status));
srqidx = ABORT_RSS_SRQIDX_G(be32_to_cpu(srqidx_status));
/*