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
tree: 05ce15c58cf7e456d87f5e64e46ae06f51a45697
  1. include/
  2. lib/
  3. tests/
  4. util/
  5. LICENSE
  6. Makefile
  7. README
  8. vpd.c