From ece7ac61373a960670d2baf5e7a0df4c7db89110 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 18 Jul 2014 17:35:30 +0300 Subject: [PATCH] android/hal-audio: Remove unneeded check rsp_len cannot be NULL here because of NULL check in the beginning of the function. --- android/hal-audio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/hal-audio.c b/android/hal-audio.c index d7a06fa66..66dc46aa2 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -286,8 +286,7 @@ static int audio_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, goto failed; } - if (rsp_len) - *rsp_len = cmd.len; + *rsp_len = cmd.len; return AUDIO_STATUS_SUCCESS; -- 2.47.3