[PATCH 0/3] Code improvements and argument checks for mmc dev subcommand
Peng Fan
peng.fan at oss.nxp.com
Tue Feb 3 12:55:34 CET 2026
On Fri, Jan 30, 2026 at 06:03:50PM +0000, Yao Zi wrote:
>This series reduces code duplication by utilizing fallthrough, then adds
>extra checks for arguments of mmc dev to ensure they're valid numbers,
>preventing unexpected behavior.
>
>The last patch replaces an integer literal returned in do_mmc_dev() by
>its corresponding symbolic constant, CMD_RET_FAILURE to improve
>readability, no function change is involved.
>
>Yao Zi (3):
> cmd: mmc: Simplify dev subcommand handling
> cmd: mmc: Check whether arguments are valid numbers in dev subcommand
> cmd: mmc: Return symbolic value when part switching fails in mmc dev
>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list