soc: microchip: mpfs: simplify error handling in mpfs_blocking_transaction()
authorConor Dooley <conor.dooley@microchip.com>
Tue, 7 Mar 2023 20:22:57 +0000 (20:22 +0000)
committerConor Dooley <conor.dooley@microchip.com>
Mon, 3 Apr 2023 18:26:59 +0000 (19:26 +0100)
commit7606f4dfffa7a4e4aadd8aef918cc8ac1f1e2196
tree962e82c75a5f188e846018d0eb8f803d114cdf0b
parent4f739af1934ad7195db35f74cfbdca264668d8fc
soc: microchip: mpfs: simplify error handling in mpfs_blocking_transaction()

The error handling has a kinda weird nested-if setup that is not really
adding anything. Switch it to more of an early return arrangement as a
predatory step for adding different handing for timeouts and failed
services.

Tested-by: Valentina Fernandez <valentina.fernandezalanis@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/soc/microchip/mpfs-sys-controller.c