staging: vchiq_arm: refactor goto instructions in vchiq_probe()
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Mon, 14 Oct 2024 08:56:36 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2024 07:58:15 +0000 (09:58 +0200)
commit76c29a2e0e6266641340d5f129fe8a022698c631
treeb7f74010e48477ad5657db73e3421d5aa3c78075
parent4dfcc5fd0f9b19c0df9f0499861baf56ec2ba4cb
staging: vchiq_arm: refactor goto instructions in vchiq_probe()

The 'failed_platform_init' and 'error_exit' labels do not simplify the
code, there is a single jump to them in the code, and the actions taken
from then on can be easily carried out where the goto occurs.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20241014-vchiq_arm-of_node_put-v2-1-cafe0a4c2666@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c