diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-07-26 11:12:31 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-07-26 16:25:34 -0700 |
commit | 247fdaf13d7d317465d6d04b015a309721e599a9 (patch) | |
tree | 6eef0fb1a07133135f0529a6e26635b99428b6ea /common/vboot_hash.c | |
parent | d0d50b6da7b826c0aa13391d6794b66e1c0f1303 (diff) | |
download | chrome-ec-247fdaf13d7d317465d6d04b015a309721e599a9.tar.gz |
Change host command params/response pointers to void *
This removes a bunch of unnecessary typecasts, since you can assign
to/from void * without them. This also uncovered a few cases where
const was being cast away for the input params; now fixed.
BUG=none
TEST=mkbp hash from u-boot console, and/or system boots ok
Change-Id: Ic314b9d2ca06226ea8a09703ef5c1a912eb7146d
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/28500
Diffstat (limited to 'common/vboot_hash.c')
-rw-r--r-- | common/vboot_hash.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/vboot_hash.c b/common/vboot_hash.c index 49e3e4797b..6f944622da 100644 --- a/common/vboot_hash.c +++ b/common/vboot_hash.c @@ -261,10 +261,8 @@ static void fill_response(struct ec_response_vboot_hash *r) static int host_command_vboot_hash(struct host_cmd_handler_args *args) { - const struct ec_params_vboot_hash *p = - (const struct ec_params_vboot_hash *)args->params; - struct ec_response_vboot_hash *r = - (struct ec_response_vboot_hash *)args->response; + const struct ec_params_vboot_hash *p = args->params; + struct ec_response_vboot_hash *r = args->response; int rv; switch (p->cmd) { |