[PATCH v2] power: regulator: Fix incorrect use of binary and
Peng Fan (OSS)
peng.fan at oss.nxp.com
Wed Sep 24 18:30:12 CEST 2025
From: Peng Fan <peng.fan at nxp.com>
On Mon, 01 Sep 2025 16:00:46 +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.
>
> [...]
Applied, thanks!
[1/1] power: regulator: Fix incorrect use of binary and
commit: 6c98e6014b3a36933860d02cb757565ec2fc80a4
Best regards,
--
Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list