diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-07-31 17:08:15 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-01 00:57:22 +0200 |
commit | 7810e09bfba56bc0f2aff705ca7086e6c1f103f6 (patch) | |
tree | 76c9f583cad2c5e10c957b1a470ec0e31e712ec5 /drivers/infiniband/hw/cxgb4/cm.c | |
parent | RDMA/core: Prefix _ib to IB/RoCE specific functions (diff) | |
download | linux-7810e09bfba56bc0f2aff705ca7086e6c1f103f6.tar.xz linux-7810e09bfba56bc0f2aff705ca7086e6c1f103f6.zip |
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: 6a0b6174d35a ("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>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/cm.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 54f7fbef7880..d7cfa38baad2 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -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)); /* |