mfd: qnap-mcu: Improve structure in qnap_mcu_exec
authorHeiko Stuebner <heiko@sntech.de>
Mon, 4 Aug 2025 13:07:26 +0000 (15:07 +0200)
committerLee Jones <lee@kernel.org>
Wed, 1 Oct 2025 09:28:16 +0000 (10:28 +0100)
commit71f529e9fedc377b43b73ec9d28ec59d9a3a2792
tree420a43b6a4e7002930e0b5ae0ccdb839c31cdac9
parent21c5ffb4211203de0a91de8a1c4a329e508a2ffb
mfd: qnap-mcu: Improve structure in qnap_mcu_exec

Now with guard(mutex) in place, we can make the function's structure
a bit easier to read, by removing the nested if-else-clauses.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250804130726.3180806-5-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/qnap-mcu.c