summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/phy/ddrphy_utils.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-01-02 18:21:16 +0100
committerJagan Teki <jagan@amarulasolutions.com>2023-01-26 21:05:13 +0530
commitee0b0be204aad0cee41167546fa3fc82f2aa57e8 (patch)
treef9552d4a956fa3dfa7e1c2602afcfc822ef69d23 /drivers/ddr/imx/phy/ddrphy_utils.c
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 <heinrich.schuchardt@canonical.com> Acked-by: Dhruva Gole <d-gole@ti.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'drivers/ddr/imx/phy/ddrphy_utils.c')
0 files changed, 0 insertions, 0 deletions