[PATCH v2] power: regulator: Fix incorrect use of binary and
Peng Fan
peng.fan at oss.nxp.com
Tue Sep 23 11:04:52 CEST 2025
On Mon, Sep 01, 2025 at 04:00:46PM +0100, Andrew Goodbody wrote:
>In regulator_list_autoset there is a test for ret being non-zero and
>error being zero but it uses the binary '&' instead of the logical '&&'
>which could well lead to unexpected results. Correct this to use the
>logical '&&' instead.
>
>This issue found by Smatch.
>
>Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list