From e237092ee9d54b0fd77579fcd1c21b6f64146920 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Fri, 9 Jun 2017 18:03:38 +0800 Subject: ectool: fix command tpframeget return value ec_command returns the length of response if there is no error. Fix the return value so tpframeget sub command returns 0 on success. BRANCH=none BUG=b:62077098 TEST=`make BOARD=rose -j` Change-Id: I87288a3efcca75dacebae784e731e314e97017ad Signed-off-by: Wei-Ning Huang Reviewed-on: https://chromium-review.googlesource.com/527766 Commit-Ready: Wei-Ning Huang Tested-by: Wei-Ning Huang Reviewed-by: Rong Chang --- util/ectool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/ectool.c b/util/ectool.c index c17a4d71e0..6c562c38fd 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -7210,7 +7210,7 @@ err: free(data); free(r); - return rv; + return rv < 0; } /* NULL-terminated list of commands */ -- cgit v1.2.1