commit | d1730cf220f9541ad4e627ae3c93371d129000b5 | [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 | 9696dbbf38c39b3261ca8be28e30d2ffd9801e2d [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>