diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-04-18 18:57:48 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-04-19 11:08:28 -0700 |
commit | ee3edc0116ea7720c5a0ab9713cb4b1cdabb45ee (patch) | |
tree | 3ea17eb42f700b1903a9d7ea66f9cc1a3ddbef3c /common/port80.c | |
parent | 70f3fcaf8648230a5cd27a9da151494d6df3016f (diff) | |
download | chrome-ec-ee3edc0116ea7720c5a0ab9713cb4b1cdabb45ee.tar.gz |
Clean up inits
We can clear the reset cause in system pre-init now because of a
previous change which preserves it across a sysjump.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=if it boots, it works
Change-Id: I1d8b99df5a0be0de9545d22ad1a6b7fb3140f813
Diffstat (limited to 'common/port80.c')
-rw-r--r-- | common/port80.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/common/port80.c b/common/port80.c index 9e6ba40c1f..77ff6fa471 100644 --- a/common/port80.c +++ b/common/port80.c @@ -14,8 +14,8 @@ #define HISTORY_LEN 16 static uint8_t history[HISTORY_LEN]; -static int head = 0; /* Next index to use / oldest previous entry */ -static int scroll = 0; +static int head; /* Next index to use / oldest previous entry */ +static int scroll; void port_80_write(int data) @@ -30,7 +30,6 @@ void port_80_write(int data) head = (head + 1) & (HISTORY_LEN - 1); } - /*****************************************************************************/ /* Console commands */ @@ -58,12 +57,3 @@ static int command_port80(int argc, char **argv) return EC_SUCCESS; } DECLARE_CONSOLE_COMMAND(port80, command_port80); - -/*****************************************************************************/ -/* Initialization */ - -int port_80_init(void) -{ - memset(history, 0, sizeof(history)); - return EC_SUCCESS; -} |