]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: vchiq_arm: Reduce indentation of service_callback
authorStefan Wahren <wahrenst@gmx.net>
Fri, 21 Jun 2024 13:19:55 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 13:26:56 +0000 (15:26 +0200)
commit504b0e3881dada6bb16919ad8295f3dfb6c39c0b
tree59fc8be479228e2b8ce90c89c90dd18851213539
parent7852f7357e2ad2e00e2bed55b097bcbcfc61266b
staging: vchiq_arm: Reduce indentation of service_callback

The service_callback has 5 levels of indentation, which makes it
hard to read. Reduce this by splitting the code in a new function
service_single_message() as suggested by Laurent Pinchart.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20240621131958.98208-8-wahrenst@gmx.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c