diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-10 02:41:14 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-09 20:08:00 -0700 |
commit | e41128cfd9389b889e91097b8ca61574d1e71482 (patch) | |
tree | ea445ce5088ebf2091252f3f6c1ea729e760c634 /block/blk-ioc.c | |
parent | 0e17e06cbf7ede285ab74bab44d888b40c21f828 (diff) |
block: remove set but not used variable 'et'
Fixes gcc '-Wunused-but-set-variable' warning:
block/blk-ioc.c: In function 'put_io_context_active':
block/blk-ioc.c:174:24: warning:
variable 'et' set but not used [-Wunused-but-set-variable]
It not used any more after commit
a1ce35fa4985 ("block: remove dead elevator code")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-ioc.c')
-rw-r--r-- | block/blk-ioc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index 007aac6e6a4b..56755ad5ac88 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c @@ -171,7 +171,6 @@ EXPORT_SYMBOL(put_io_context); */ void put_io_context_active(struct io_context *ioc) { - struct elevator_type *et; unsigned long flags; struct io_cq *icq; @@ -190,7 +189,6 @@ void put_io_context_active(struct io_context *ioc) if (icq->flags & ICQ_EXITED) continue; - et = icq->q->elevator->type; ioc_exit_icq(icq); } spin_unlock_irqrestore(&ioc->lock, flags); |