Skip to content
Commit 8c8df676 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Jagan Teki
Browse files

cmd: simplify do_spi_flash()



CMD_RET_USAGE == -1. The special handling of this value at the end of
do_spi_flash() does not make any sense.

To avoid future confusion use the CMD_RET_* constants and simplify the
code.

Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: default avatarJagan Teki <jagan@amarulasolutions.com>
parent fa3b38d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment