From ddb7253254fee6922764043101f8b28b6a00595d Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 31 May 2018 19:11:38 +0200 Subject: block: remove the always unused name argument to elevator_init Reported-by: Damien Le Moal Signed-off-by: Christoph Hellwig Reviewed-by: Damien Le Moal Tested-by: Damien Le Moal Signed-off-by: Jens Axboe --- block/blk-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block/blk-core.c') diff --git a/block/blk-core.c b/block/blk-core.c index b00e7e6340ca..18b691c93b63 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1179,7 +1179,7 @@ int blk_init_allocated_queue(struct request_queue *q) mutex_lock(&q->sysfs_lock); /* init elevator */ - if (elevator_init(q, NULL)) { + if (elevator_init(q)) { mutex_unlock(&q->sysfs_lock); goto out_exit_flush_rq; } -- cgit