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>
This commit is contained in:
Bill Richardson
2013-07-08 13:58:37 -07:00
committed by ChromeBot
parent 528ddf7660
commit ab59576a43

View File

@@ -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;
}