diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-25 22:26:45 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-05 15:06:02 -0400 |
commit | 54d24d72601321f4470c4edf31c6b29adae424a7 (patch) | |
tree | edc082ec54051b84431fc912979a33ebe87ddaa2 /cmd/elf.c | |
parent | e4269636bec4e64dc363e237c2d1efa0e8645310 (diff) | |
download | u-boot-54d24d72601321f4470c4edf31c6b29adae424a7.zip u-boot-54d24d72601321f4470c4edf31c6b29adae424a7.tar.gz u-boot-54d24d72601321f4470c4edf31c6b29adae424a7.tar.bz2 |
cmd: simplify do_adc_single()
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@canonical.com>
Diffstat (limited to 'cmd/elf.c')
0 files changed, 0 insertions, 0 deletions