dm-mpath: make dm_unregister_path_selector return void
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 30 Jun 2025 13:23:03 +0000 (15:23 +0200)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 30 Jun 2025 14:20:04 +0000 (16:20 +0200)
commitf86272350f38d3fa4049944257a1b4260f3eba2e
tree05e7c587433d195fb9368915f39665b9dc8cf47d
parentebbd17695e9e1f4c3cdb36149c8b8f38b585e14d
dm-mpath: make dm_unregister_path_selector return void

dm_unregister_path_selector may only return error if there's a bug in the
code - so we make it return void and print a warning if the user abuses
this function to unregister a target that was not registered.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-path-selector.c
drivers/md/dm-path-selector.h
drivers/md/dm-ps-historical-service-time.c
drivers/md/dm-ps-io-affinity.c
drivers/md/dm-ps-queue-length.c
drivers/md/dm-ps-round-robin.c
drivers/md/dm-ps-service-time.c