diff options
Diffstat (limited to 'common/test_util.c')
-rw-r--r-- | common/test_util.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/common/test_util.c b/common/test_util.c index 10e718399f..c133ac9d24 100644 --- a/common/test_util.c +++ b/common/test_util.c @@ -70,7 +70,6 @@ int test_send_host_command(int command, int version, const void *params, int params_size, void *resp, int resp_size) { struct host_cmd_handler_args args; - int rv; args.version = version; args.command = command; @@ -80,12 +79,7 @@ int test_send_host_command(int command, int version, const void *params, args.response_max = resp_size; args.response_size = 0; - rv = host_command_process(&args); - - if (args.response != resp) - memcpy(resp, args.response, args.response_size); - - return rv; + return host_command_process(&args); } #endif /* TASK_HAS_HOSTCMD */ |