Skip to content
Snippets Groups Projects
Commit 84c1dfe4 authored by Markus Niebel's avatar Markus Niebel Committed by Stefano Babic
Browse files

cmd_mmc: fix arg parsing for setdsr subcmd


The handler do_setdsr receives only the dsr parameter,
the action is parsed before.

Error was introduced when restructuring the mmc command
implementation in commit 1fd93c6e.

Reported-by: default avatarMichael Krummsdorf <Michael.Krummsdorf@tq-group.com>
Signed-off-by: default avatarMarkus Niebel <Markus.Niebel@tq-group.com>
parent 2018ef86
No related branches found
No related tags found
No related merge requests found
...@@ -710,7 +710,7 @@ static int do_mmc_setdsr(cmd_tbl_t *cmdtp, int flag, ...@@ -710,7 +710,7 @@ static int do_mmc_setdsr(cmd_tbl_t *cmdtp, int flag,
if (argc != 2) if (argc != 2)
return CMD_RET_USAGE; return CMD_RET_USAGE;
val = simple_strtoul(argv[2], NULL, 16); val = simple_strtoul(argv[1], NULL, 16);
mmc = find_mmc_device(curr_device); mmc = find_mmc_device(curr_device);
if (!mmc) { if (!mmc) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment