summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2023-01-02 18:21:16 +0100
committerJagan Teki <[email protected]>2023-01-26 21:05:13 +0530
commitee0b0be204aad0cee41167546fa3fc82f2aa57e8 (patch)
treef9552d4a956fa3dfa7e1c2602afcfc822ef69d23 /include/linux/mtd
parent8c8df676095ea05290f3deff1c8449f82e52b6ed (diff)
cmd: fix return code of 'sf erase'
If the offset or the size passed to the 'sf erase' 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 <[email protected]> Acked-by: Dhruva Gole <[email protected]> Reviewed-by: Jagan Teki <[email protected]>
Diffstat (limited to 'include/linux/mtd')
0 files changed, 0 insertions, 0 deletions