summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-23 16:59:05 -0700
committerGerrit <chrome-bot@google.com>2012-10-25 11:24:04 -0700
commit61b2c4397ee094d5f74fa816f6e9b658a0ff550a (patch)
treea1d149926630ebe3777fd161a0fc7ca77eac3cec /common
parent2957c3cf8b2275a1a6803bc4e141a30533cc2f1e (diff)
downloadchrome-ec-61b2c4397ee094d5f74fa816f6e9b658a0ff550a.tar.gz
Cleanup: flash module
No functional changes; just clean up comments and remove dead code BUG=chrome-os-partner:15579 BRANCH=none TEST=code compiles Change-Id: Id006ae18f2b26cea1720196f696f937811b6ba5b Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36448 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/flash_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/flash_common.c b/common/flash_common.c
index f13a978ebf..6afa4adc6e 100644
--- a/common/flash_common.c
+++ b/common/flash_common.c
@@ -5,7 +5,7 @@
/* Flash memory module for Chrome EC - common functions */
-#include "config.h"
+#include "common.h"
#include "console.h"
#include "flash.h"
#include "host_command.h"
@@ -62,7 +62,7 @@ int flash_erase(int offset, int size)
/*****************************************************************************/
/* Console commands */
-/*
+/**
* Parse offset and size from command line argv[shift] and argv[shift+1]
*
* Default values: If argc<=shift, leaves offset unchanged, returning error if
@@ -166,7 +166,6 @@ static int command_flash_write(int argc, char **argv)
char *data;
int i;
-
rv = parse_offset_size(argc, argv, 1, &offset, &size);
if (rv)
return rv;