diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-06-09 08:49:52 +0000 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-06-10 02:31:44 +0000 |
commit | ec513489933528e179bc6f98d47e6ea86c271a22 (patch) | |
tree | 28490e5fb8e210a0b0e2e42efba740ae50c6453d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a8f77c63baece8c47599bc418d3c2c138ca7efaf (diff) |
platform/chrome: cros_ec_proto: check `msg->result` in getting cmd mask
cros_ec_get_host_command_version_mask() should check if EC wasn't happy
by checking `msg->result`.
Use cros_ec_map_error() and return the error code if any.
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220609084957.3684698-17-tzungbi@kernel.org
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions