Files
u-boot/drivers
Andrew Goodbody b1e2cbd65c pwm: meson: Stop premature exit from for loop
In meson_pwm_probe the for loop attempts to get the name of a clock but
the following if..else statements only perform useful work if -ENODATA
is returned from clk_get_by_name. If clk_get_by_name simply succeeds
then this results in a premature exit from the for loop and the
following code can never be reached. Make the else clause only apply for
an error return from clk_get_by_name.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250808-pwm_meson-v1-1-cddb7e5f76bd@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2025-09-30 20:32:15 +02:00
..
2025-07-10 08:41:03 -06:00
2025-04-11 12:16:44 -06:00
2025-09-30 20:32:15 +02:00
2025-08-26 07:30:09 +02:00
2025-07-22 11:30:14 -06:00
2025-08-25 16:20:48 +02:00
2025-06-02 17:26:16 -06:00
2025-04-11 12:16:44 -06:00
2025-09-20 17:45:39 -03:00
2025-09-25 00:06:27 +08:00
2025-08-27 15:49:59 +08:00
2025-08-25 13:28:49 -06:00
2025-09-08 10:37:22 -06:00
2025-08-14 10:58:46 -06:00
2025-08-25 13:28:49 -06:00