summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-05-10 19:20:14 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-12 12:37:38 (GMT)
commit62f733b396cbe39315e9f28ea348300c6a72caa9 (patch)
tree1279626f8d5ae8807b72b9afb366efcf4a983b18 /drivers
parent9398b8ce5ff619be2b913a44f0b4705d444b1a19 (diff)
downloadu-boot-62f733b396cbe39315e9f28ea348300c6a72caa9.tar.xz
cmd/led.c: Remove unnecessary check on 'cmd' value
We first check that if argc is less than 2 we return CMD_RET_USAGE. We then see if argc is greater than 2 and if so call get_led_cmd() to set 'cmd' and otherwise set it to LEDST_COUNT (which will always be positive as it's an enum with 0 already assigned). Therefore the test on if cmd is less than 0 will always be false and simply be omitted. Reported by clang-3.8. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions