Skip to content
Snippets Groups Projects
Commit 93d3232d authored by Rostislav Lisovy's avatar Rostislav Lisovy Committed by Tom Rini
Browse files

cmd_nand: Update (nand_info_t*)nand after arg_off(_size) call


The arg_off() and arg_off_size() update the 'current NAND
device' variable (dev). This is then used when assigning the
(nand_info_t*)nand value. Place the assignment after the
arg_off(_size) calls to prevent using incorrect (nand_info_t*)
nand value.

Signed-off-by: default avatarRostislav Lisovy <lisovy@merica.cz>
parent 97d5e9d1
No related branches found
No related tags found
Loading
Loading
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