summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisao Tanabe <xtanabe@gmail.com>2019-04-07 17:27:42 +0200
committerJens Axboe <axboe@kernel.dk>2019-04-08 16:13:12 +0200
commitd0b0a81acbd809228b57fb27a89028ecd0fc542a (patch)
tree5d7e783dc326ae75ccd144423fba120cab7c28ca
parentvirtio_blk: replace 0 by HCTX_TYPE_DEFAULT to index blk_mq_tag_set->map (diff)
downloadlinux-d0b0a81acbd809228b57fb27a89028ecd0fc542a.tar.xz
linux-d0b0a81acbd809228b57fb27a89028ecd0fc542a.zip
block: remove unused variable 'def'
The 'def' local variable became unused after commit f382fb0bcef4 ("block: remove legacy IO schedulers"), let's remove it. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Hisao Tanabe <xtanabe@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--block/elevator.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/block/elevator.c b/block/elevator.c
index d6d835a08de6..2e5399d9f40f 100644
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -509,8 +509,6 @@ void elv_unregister_queue(struct request_queue *q)
int elv_register(struct elevator_type *e)
{
- char *def = "";
-
/* create icq_cache if requested */
if (e->icq_size) {
if (WARN_ON(e->icq_size < sizeof(struct io_cq)) ||
@@ -535,8 +533,8 @@ int elv_register(struct elevator_type *e)
list_add_tail(&e->list, &elv_list);
spin_unlock(&elv_list_lock);
- printk(KERN_INFO "io scheduler %s registered%s\n", e->elevator_name,
- def);
+ printk(KERN_INFO "io scheduler %s registered\n", e->elevator_name);
+
return 0;
}
EXPORT_SYMBOL_GPL(elv_register);