From ff3127350168d79e68ffd363dbc0e6fbfe40f04b Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 18 Jul 2014 17:35:29 +0300 Subject: [PATCH] android/hal-sco: Remove unneeded check rsp_len cannot be NULL since it checked for NULL in the beginning of the function. --- android/hal-sco.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/hal-sco.c b/android/hal-sco.c index 0e87aad41..55e58b536 100644 --- a/android/hal-sco.c +++ b/android/hal-sco.c @@ -265,8 +265,7 @@ static int sco_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 SCO_STATUS_SUCCESS; -- 2.47.3