diff options
| author | Yao Zi <[email protected]> | 2026-01-30 18:03:53 +0000 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-02-03 22:11:46 +0800 |
| commit | b4f0479e076014f403319fdce53c5c1ac278f8ae (patch) | |
| tree | 1c7d949d56a5a2308528a9191a60dfb3c122a7bb /cmd | |
| parent | f955e00e42e9b7ef5a3adf1ba1947f46c05a3d36 (diff) | |
cmd: mmc: Return symbolic value when part switching fails in mmc dev
Return symbolic value CMD_RET_FAILURE instead of literal "1" when
failing to switch the partition to improve readability.
Signed-off-by: Yao Zi <[email protected]>
Tested-by: Anshul Dalal <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c index 512bd482ae8..bcbe963f8ac 100644 --- a/cmd/mmc.c +++ b/cmd/mmc.c @@ -606,7 +606,7 @@ static int do_mmc_dev(struct cmd_tbl *cmdtp, int flag, printf("switch to partitions #%d, %s\n", part, (!ret) ? "OK" : "ERROR"); if (ret) - return 1; + return CMD_RET_FAILURE; curr_device = dev; if (mmc->part_config == MMCPART_NOAVAILABLE) |
