Eric Biggers f5ec592dd3 block: simplify calling convention of elv_unregister_queue()
Make elv_unregister_queue() a no-op if q->elevator is NULL or is not
registered.

This simplifies the existing callers, as well as the future caller in
the error path of blk_register_queue().

Also don't bother checking whether q is NULL, since it never is.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220124215938.2769-2-ebiggers@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-02-28 06:40:23 -07:00
..
2022-02-02 07:49:59 -07:00
2022-02-27 14:52:36 -07:00
2022-02-18 06:13:00 -07:00
2021-12-06 13:18:47 -07:00
2020-03-17 20:55:21 +01:00
2021-09-14 00:22:15 -04:00
2022-02-02 07:49:59 -07:00
2021-10-18 06:17:01 -06:00
2022-02-22 06:59:09 -07:00
2022-02-02 07:49:59 -07:00
2022-01-12 10:26:52 -08:00
2021-11-29 06:34:50 -07:00
2022-02-02 07:49:59 -07:00