Smatch reported unreachable code in blk-uclass.c which led to noticing that uclass_find_next_device always returned 0 which meant it had no need of any return value.
Signed-off-by: Andrew Goodbody <[email protected]> --- Changes in v2: - make uclass_find_next_device a void and update callers - Link to v1: https://lore.kernel.org/r/[email protected] --- Andrew Goodbody (2): block: Remove unreachable code uclass: Cleanup uclass_find_next_device board/emulation/qemu-ppce500/qemu-ppce500.c | 4 ++-- boot/bootdev-uclass.c | 2 +- cmd/regulator.c | 4 ++-- drivers/block/blk-uclass.c | 14 ++++---------- drivers/core/uclass.c | 16 +++++----------- drivers/power/regulator/regulator-uclass.c | 10 ++++++---- drivers/remoteproc/rproc-uclass.c | 6 ++++-- include/dm/uclass-internal.h | 4 +--- test/dm/core.c | 28 ++++++++++++++-------------- 9 files changed, 39 insertions(+), 49 deletions(-) --- base-commit: 074e05952705972072f52128cf2e3ec2d8f35de6 change-id: 20250714-blk-uclass-34684c01f60c Best regards, -- Andrew Goodbody <[email protected]>

