commit | 54d24d72601321f4470c4edf31c6b29adae424a7 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Mon Apr 25 22:26:45 2022 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu May 05 15:06:02 2022 -0400 |
tree | edc082ec54051b84431fc912979a33ebe87ddaa2 | |
parent | e4269636bec4e64dc363e237c2d1efa0e8645310 [diff] |
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>