Skip to content

Commit

Permalink
block: remove unused variable 'def'
Browse files Browse the repository at this point in the history
The 'def' local variable became unused after commit f382fb0 ("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>
  • Loading branch information
xtanabe authored and axboe committed Apr 8, 2019
1 parent 9bc0075 commit d0b0a81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) ||
Expand All @@ -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);
Expand Down

0 comments on commit d0b0a81

Please sign in to comment.