Fix the bug of re-writing flash in vpd -l.
The modified variable was unexpectly ++ even if no -d is specified.
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
BUG=chrome-os-partner:19748
TEST=make test && vpd -l on link
original time is 7.5 secs.
new time is 1.2 secs.
Change-Id: If9504ae48512e7c53cd4c21a141cf8d3d13b2498
Reviewed-on: https://gerrit.chromium.org/gerrit/56764
Commit-Queue: Yung-Chieh Lo <yjlou@chromium.org>
Tested-by: Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-by: David Hendricks <dhendrix@chromium.org>
4 files changed