Skip to content

Commit

Permalink
cros_ec: Don't return error when checking command version
Browse files Browse the repository at this point in the history
With this patch, cros_ec_query_all() does not return an error if it
fails to check for MKBP events support. Instead, the EC device structure
indicates that it does not support MKBP events (mkbp_event_supported
field) and cros_ec_query_all() returns 0.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
  • Loading branch information
Thierry Escande authored and Benson Leung committed Jun 27, 2017
1 parent 995c0ec commit a27b8f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/platform/chrome/cros_ec_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ int cros_ec_query_all(struct cros_ec_device *ec_dev)
else
ec_dev->mkbp_event_supported = 1;

ret = 0;

exit:
kfree(proto_msg);
return ret;
Expand Down

0 comments on commit a27b8f3

Please sign in to comment.