]> git.sur5r.net Git - u-boot/commit
cmd_nand: Update (nand_info_t*)nand after arg_off(_size) call
authorRostislav Lisovy <lisovy@gmail.com>
Tue, 16 Sep 2014 12:38:52 +0000 (14:38 +0200)
committerTom Rini <trini@ti.com>
Wed, 24 Sep 2014 22:30:29 +0000 (18:30 -0400)
commit93d3232d9607669f33a34d3a552b24e1d727413b
treeb2f65d29e91a3e34fe6f4466e2fe47e1a317f8e9
parent97d5e9d149ca910e1bd20d06a13b9e9cceb0e502
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: Rostislav Lisovy <lisovy@merica.cz>
common/cmd_nand.c