public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/3] Code improvements and argument checks for mmc dev subcommand
@ 2026-01-30 18:03 Yao Zi
  2026-01-30 18:03 ` [PATCH 1/3] cmd: mmc: Simplify dev subcommand handling Yao Zi
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Yao Zi @ 2026-01-30 18:03 UTC (permalink / raw)
  To: Peng Fan, Jaehoon Chung, Tom Rini, Jerome Forissier,
	Mattijs Korpershoek
  Cc: u-boot, Yao Zi

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(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-03 13:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30 18:03 [PATCH 0/3] Code improvements and argument checks for mmc dev subcommand Yao Zi
2026-01-30 18:03 ` [PATCH 1/3] cmd: mmc: Simplify dev subcommand handling Yao Zi
2026-01-30 18:03 ` [PATCH 2/3] cmd: mmc: Check whether arguments are valid numbers in dev subcommand Yao Zi
2026-01-30 18:03 ` [PATCH 3/3] cmd: mmc: Return symbolic value when part switching fails in mmc dev Yao Zi
2026-02-02  7:51 ` [PATCH 0/3] Code improvements and argument checks for mmc dev subcommand Anshul Dalal
2026-02-03 11:55 ` Peng Fan
2026-02-03 14:18 ` Peng Fan (OSS)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox