diff options
author | Eric Biggers <ebiggers@google.com> | 2022-01-24 13:59:36 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-02-28 06:40:23 -0700 |
commit | f5ec592dd3bcf7c91f7c262a7f5011e001d269cd (patch) | |
tree | 4907b114a9e1fd2a3e4c05855fffc75ca2010d7e /Documentation/i2c | |
parent | 483546c11d702fd6f74c8c3f8123b7672def10b2 (diff) | |
download | linux-f5ec592dd3bcf7c91f7c262a7f5011e001d269cd.tar.bz2 |
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>
Diffstat (limited to 'Documentation/i2c')
0 files changed, 0 insertions, 0 deletions