diff options
author | Bill Richardson <wfrichar@chromium.org> | 2013-07-08 13:58:37 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-07-09 08:51:43 -0700 |
commit | ab59576a43a9fbfc97e382629416bdee90d1019d (patch) | |
tree | edb481af56458251ab9faad693014f17fecd222b /util/comm-dev.c | |
parent | 528ddf7660c48f33beb834e0cfd629cd08f16548 (diff) | |
download | chrome-ec-ab59576a43a9fbfc97e382629416bdee90d1019d.tar.gz |
Fix uninitialized constant in util/comm-dev.c
This made the /dev/cros_ec method fail when reporting the version.
BUG=chrome-os-partner:20571
BRANCH=none
TEST=manual
ectool version
Used to fail; now it works again.
Change-Id: Ib5b7188f713981cffce36d065255d81b102d4bbe
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/61133
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'util/comm-dev.c')
-rw-r--r-- | util/comm-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/comm-dev.c b/util/comm-dev.c index fb5fb31ae6..89b1cd9069 100644 --- a/util/comm-dev.c +++ b/util/comm-dev.c @@ -110,7 +110,7 @@ int comm_init_dev(void) * TODO: need a way to get this from the driver and EC. For now, * pick a magic lowest common denominator value. */ - ec_max_outsize = EC_PROTO2_MAX_PARAM_SIZE - 8; + ec_max_insize = ec_max_outsize = EC_PROTO2_MAX_PARAM_SIZE - 8; return 0; } |