summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-08-24 10:52:13 +0300
committerJens Axboe <axboe@kernel.dk>2022-08-24 17:50:44 +0300
commitf2cc648e12285c53365c2bcacbcd919022f4d3a8 (patch)
tree4b7b3280ce6fd938b0e411a40d7e7061068a832d /drivers/block
parent040b83fcecfb86f3225d3a5de7fd9b3fbccf83b4 (diff)
downloadlinux-f2cc648e12285c53365c2bcacbcd919022f4d3a8.tar.xz
block/rnbd-clt: Remove the unneeded result variable
Return the value from rtrs_clt_rdma_cq_direct() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Acked-by: Jack Wang <jinpu.wang@ionos.com> Link: https://lore.kernel.org/r/20220824075213.221397-1-ye.xingchen@zte.com.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rnbd/rnbd-clt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/rnbd/rnbd-clt.c b/drivers/block/rnbd/rnbd-clt.c
index 9d01e7ab33e4..78334da74d8b 100644
--- a/drivers/block/rnbd/rnbd-clt.c
+++ b/drivers/block/rnbd/rnbd-clt.c
@@ -1159,10 +1159,8 @@ static int rnbd_rdma_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob)
{
struct rnbd_queue *q = hctx->driver_data;
struct rnbd_clt_dev *dev = q->dev;
- int cnt;
- cnt = rtrs_clt_rdma_cq_direct(dev->sess->rtrs, hctx->queue_num);
- return cnt;
+ return rtrs_clt_rdma_cq_direct(dev->sess->rtrs, hctx->queue_num);
}
static void rnbd_rdma_map_queues(struct blk_mq_tag_set *set)