Commit d0b0a81a authored by Hisao Tanabe's avatar Hisao Tanabe Committed by Jens Axboe

block: remove unused variable 'def'

The 'def' local variable became unused after commit f382fb0b ("block: remove
legacy IO schedulers"), let's remove it.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarHisao Tanabe <xtanabe@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9bc00750
...@@ -509,8 +509,6 @@ void elv_unregister_queue(struct request_queue *q) ...@@ -509,8 +509,6 @@ void elv_unregister_queue(struct request_queue *q)
int elv_register(struct elevator_type *e) int elv_register(struct elevator_type *e)
{ {
char *def = "";
/* create icq_cache if requested */ /* create icq_cache if requested */
if (e->icq_size) { if (e->icq_size) {
if (WARN_ON(e->icq_size < sizeof(struct io_cq)) || if (WARN_ON(e->icq_size < sizeof(struct io_cq)) ||
...@@ -535,8 +533,8 @@ int elv_register(struct elevator_type *e) ...@@ -535,8 +533,8 @@ int elv_register(struct elevator_type *e)
list_add_tail(&e->list, &elv_list); list_add_tail(&e->list, &elv_list);
spin_unlock(&elv_list_lock); spin_unlock(&elv_list_lock);
printk(KERN_INFO "io scheduler %s registered%s\n", e->elevator_name, printk(KERN_INFO "io scheduler %s registered\n", e->elevator_name);
def);
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(elv_register); EXPORT_SYMBOL_GPL(elv_register);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment