[PATCH 1/1] cmd: simplify do_adc_single()

Tom Rini trini at konsulko.com
Fri May 6 01:38:35 CEST 2022


On Mon, Apr 25, 2022 at 10:26:45PM +0200, Heinrich Schuchardt wrote:

> If argc is not < 3, it must be >= 3.
> 
> If argc >= 3, argv[2] cannot be NULL.
> 
> Fixes: 9de612ae4ded ("cmd: adc: Add support for storing ADC result in env variable")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220505/3fd191ba/attachment.sig>


More information about the U-Boot mailing list