]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: sf Drop reassignment of new into flash
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 13 May 2020 10:58:01 +0000 (16:28 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 1 Jun 2020 12:25:24 +0000 (17:55 +0530)
commitda37b539e62604d090fbc5b52246f8e810f2f9a7
tree6de8c43a2498d4cfe9b1edd9cc6c96b3377b96fd
parent46e4cdff1ee2b07e590b1a91d761f98e26ff3667
cmd: sf Drop reassignment of new into flash

The new pointer points to flash found and that would
assign it to global 'flash' pointer for further flash
operations and also keep track of old flash pointer.

This would happen if the probe is successful or even
failed, but current code assigning new into flash before
and after checking the new.

So, drop the assignment after new checks so flash always
latest new pointer even if probe failed or succeed.

Cc: Simon Glass <sjg@chromium.org>
Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
cmd/sf.c