aboutsummaryrefslogtreecommitdiff
path: root/Licenses/eCos-2.0.txt
diff options
context:
space:
mode:
authorHeinrich Schuchardt2023-01-02 18:21:14 +0100
committerJagan Teki2023-01-26 21:04:16 +0530
commitfa3b38d4c432745b05e417c750c1c59c347fc18e (patch)
tree0d3c080e1493ed70ada7d7417fb87d3636a66b81 /Licenses/eCos-2.0.txt
parent53f4ef0a4b809e6c147fb8deed03354631b2f564 (diff)
cmd: fix return code of 'sf write' and 'sf read'
If the offset or the size passed to the 'sf write' or 'sf read' command exceeds the size of the SPI flash displaying the command usage is not helpful. Return CMD_RET_FAILURE instead of CMD_RET_USAGE. Use the CMD_RET_* constants instead of 0, 1, -1. Simplify a logical expression in the final return statement. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'Licenses/eCos-2.0.txt')
0 files changed, 0 insertions, 0 deletions