Skip to content

Commit

Permalink
blk-mq: Remove unnecessary local variable
Browse files Browse the repository at this point in the history
Remove unnecessary local variable 'ret' in blk_mq_dispatch_hctx_list().

Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Baolin Wang authored and Jens Axboe committed Jul 10, 2020
1 parent 21cf866 commit 106e71c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions block/blk-mq-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ static bool blk_mq_dispatch_hctx_list(struct list_head *rq_list)
struct request *rq;
LIST_HEAD(hctx_list);
unsigned int count = 0;
bool ret;

list_for_each_entry(rq, rq_list, queuelist) {
if (rq->mq_hctx != hctx) {
Expand All @@ -108,8 +107,7 @@ static bool blk_mq_dispatch_hctx_list(struct list_head *rq_list)
list_splice_tail_init(rq_list, &hctx_list);

dispatch:
ret = blk_mq_dispatch_rq_list(hctx, &hctx_list, count);
return ret;
return blk_mq_dispatch_rq_list(hctx, &hctx_list, count);
}

#define BLK_MQ_BUDGET_DELAY 3 /* ms units */
Expand Down

0 comments on commit 106e71c

Please sign in to comment.