Message ID | 1486560876-29495-4-git-send-email-tim.gardner@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/block/blk-mq.c b/block/blk-mq.c index b53e2e3..5497010 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -916,7 +916,7 @@ static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx *hctx) return WORK_CPU_UNBOUND; if (--hctx->next_cpu_batch <= 0) { - int cpu = hctx->next_cpu, next_cpu; + int next_cpu; next_cpu = cpumask_next(hctx->next_cpu, hctx->cpumask); if (next_cpu >= nr_cpu_ids) @@ -924,8 +924,6 @@ static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx *hctx) hctx->next_cpu = next_cpu; hctx->next_cpu_batch = BLK_MQ_CPU_WORK_BATCH; - - return cpu; } return hctx->next_cpu;