pwm: sti: Avoid conditional gotos
authorThierry Reding <thierry.reding@gmail.com>
Wed, 11 Nov 2020 18:24:29 +0000 (19:24 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:18:59 +0000 (14:18 +0100)
commitfd3ae02bb66f091e55f363d32eca7b4039977bf5
treed39363c05138808b2f5da7c39a9a6fae34e2df9c
parent97960addcd9f5a11acd6ab28ebb33d0fde8c14a3
pwm: sti: Avoid conditional gotos

Using gotos for conditional code complicates this code significantly.
Convert the code to simple conditional blocks to increase readability.

Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sti.c