OSDN Git Service

android/hal-audio: Remove unneeded check
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 18 Jul 2014 14:35:30 +0000 (17:35 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 21 Jul 2014 08:39:31 +0000 (11:39 +0300)
rsp_len cannot be NULL here because of NULL check in the beginning of
the function.

android/hal-audio.c

index d7a06fa..66dc46a 100644 (file)
@@ -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;