]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: vchiq_core: Lower indentation in vchiq_close_service_internal
authorUmang Jain <umang.jain@ideasonboard.com>
Sun, 13 Oct 2024 11:21:28 +0000 (16:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2024 13:47:35 +0000 (15:47 +0200)
commit67283a5ca746415ad028ae2bff16ce1914c3ce2b
tree560bf00f3022c74db4efb2b4958ad581175054fa
parent8cea95f40fed5141f1950f9547839cbc436c9486
staging: vchiq_core: Lower indentation in vchiq_close_service_internal

Reduce indentation of the conditional nesting in
vchiq_close_service_internal() switch case by checking the error paths
first and break early. This helps to reduce conditional branching and
reduce indentation levels.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20241013112128.397249-7-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c