Skip to content

Commit 7810e09

Browse files
KAGA-KOKOjgunthorpe
authored andcommitted
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: 6a0b617 ("rdma/cxgb4: Add support for kernel mode SRQ's") Signed-off-by: Bart Van Assche <[email protected]> Acked-by: Steve Wise <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 8546331 commit 7810e09

File tree

1 file changed

+0
-2
lines changed
  • drivers/infiniband/hw/cxgb4

1 file changed

+0
-2
lines changed

drivers/infiniband/hw/cxgb4/cm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,10 +1857,8 @@ static void complete_cached_srq_buffers(struct c4iw_ep *ep, u32 srqidx_status)
18571857
{
18581858
enum chip_type adapter_type;
18591859
u32 srqidx;
1860-
u8 status;
18611860

18621861
adapter_type = ep->com.dev->rdev.lldi.adapter_type;
1863-
status = ABORT_RSS_STATUS_G(be32_to_cpu(srqidx_status));
18641862
srqidx = ABORT_RSS_SRQIDX_G(be32_to_cpu(srqidx_status));
18651863

18661864
/*

0 commit comments

Comments
 (0)