]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: simplify do_spi_flash()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 2 Jan 2023 17:21:15 +0000 (18:21 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 26 Jan 2023 15:34:40 +0000 (21:04 +0530)
commitc99c7725564fdee8459d91c4273f56f267abf827
tree061d7efffacd4aa97b6ae191d108c5653814dab9
parent80633b4caa8cb1912b5e71db2a83b7408c321da5
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: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
cmd/sf.c