Code improvements and argument checks for mmc dev subcommand
Status from this message: Applied to mmc for 2026.04-rc2, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | cmd: mmc: Simplify dev subcommand handlingcmd/ | +14 | 0 replies | |
| 2/3 | cmd: mmc: Check whether arguments are valid numbers in dev subcommandcmd/ | +19 | 0 replies | |
| 3/3 | cmd: mmc: Return symbolic value when part switching fails in mmc devcmd/ | +1 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Anshul Dalal | Peng Fan |
|---|---|---|
| Series | T-b | R-b |
| 1/3 | ||
| 2/3 | ||
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] Code improvements and argument checks for mmc dev subcommand
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
cmd/mmc.c | 55 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 23 deletions(-)
Signature · 1 line
2.52.0