aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2022-01-24 13:59:36 -0800
committerJens Axboe <[email protected]>2022-02-28 06:40:23 -0700
commitf5ec592dd3bcf7c91f7c262a7f5011e001d269cd (patch)
tree4907b114a9e1fd2a3e4c05855fffc75ca2010d7e /lib/mpi/mpi-sub-ui.c
parent483546c11d702fd6f74c8c3f8123b7672def10b2 (diff)
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 <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions