summaryrefslogtreecommitdiff
path: root/util/comm-dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/comm-dev.c')
-rw-r--r--util/comm-dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/comm-dev.c b/util/comm-dev.c
index a9c2157d64..1175f92555 100644
--- a/util/comm-dev.c
+++ b/util/comm-dev.c
@@ -47,6 +47,7 @@ static int ec_command_dev(int command, int version,
}
} else if (s_cmd.result != EC_RES_SUCCESS) {
fprintf(stderr, "EC result %d\n", s_cmd.result);
+ return -EECRESULT - s_cmd.result;
}
return r;