]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf97e89f320aaf8386700f81ce2c9d6c1c5ae5c5c
treed39363c05138808b2f5da7c39a9a6fae34e2df9c
parente76b7b58e16138def7f29022979a76aee96bbcf0
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