diff options
author | Markus Niebel <Markus.Niebel@tq-group.com> | 2017-02-03 15:26:36 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-04-12 18:46:38 +0200 |
commit | 84c1dfe42f08570b8a62f64ab3e45d1b62783b07 (patch) | |
tree | 700a3559f6f818a7d5738c60114dde14f5a2ca54 /cmd/mmc.c | |
parent | 2018ef868c1faf6231b8aeb6d0427f139923a9a6 (diff) | |
download | u-boot-84c1dfe42f08570b8a62f64ab3e45d1b62783b07.zip u-boot-84c1dfe42f08570b8a62f64ab3e45d1b62783b07.tar.gz u-boot-84c1dfe42f08570b8a62f64ab3e45d1b62783b07.tar.bz2 |
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 1fd93c6e7d8a1e4d6261058cefab11b875ded252.
Reported-by: Michael Krummsdorf <Michael.Krummsdorf@tq-group.com>
Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
Diffstat (limited to 'cmd/mmc.c')
-rw-r--r-- | cmd/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -710,7 +710,7 @@ static int do_mmc_setdsr(cmd_tbl_t *cmdtp, int flag, if (argc != 2) return CMD_RET_USAGE; - val = simple_strtoul(argv[2], NULL, 16); + val = simple_strtoul(argv[1], NULL, 16); mmc = find_mmc_device(curr_device); if (!mmc) { |