diff options
author | Wei-Ning Huang <wnhuang@google.com> | 2017-06-09 18:03:38 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-09 09:16:27 -0700 |
commit | e237092ee9d54b0fd77579fcd1c21b6f64146920 (patch) | |
tree | 8821ad8ee36954ad6205f121f31325f3f61488ab /util | |
parent | 0b5e3aa6428d135ff8ce638bc8a10f76fe9731f5 (diff) | |
download | chrome-ec-e237092ee9d54b0fd77579fcd1c21b6f64146920.tar.gz |
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 <wnhuang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/527766
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |