]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: mmc: Return symbolic value when part switching fails in mmc dev
authorYao Zi <me@ziyao.cc>
Fri, 30 Jan 2026 18:03:53 +0000 (18:03 +0000)
committerPeng Fan <peng.fan@nxp.com>
Tue, 3 Feb 2026 14:11:46 +0000 (22:11 +0800)
commitb4f0479e076014f403319fdce53c5c1ac278f8ae
tree1c7d949d56a5a2308528a9191a60dfb3c122a7bb
parentf955e00e42e9b7ef5a3adf1ba1947f46c05a3d36
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 <me@ziyao.cc>
Tested-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
cmd/mmc.c