提交 d0b0a81a 编写于 作者: H Hisao Tanabe 提交者: 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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NHisao Tanabe <xtanabe@gmail.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 9bc00750
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册