From 22894ef078c1c29c65ae68bcfe0b6c588f31c0fd Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Tue, 29 Jul 2014 17:20:57 +0300 Subject: [PATCH] android/ipc: Remove unneeded check rsp_len cannot be NULL since it is checked above and dereferenced. Remove static analyzers warnings. --- android/hal-ipc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/hal-ipc.c b/android/hal-ipc.c index 494ba85a9..363072cfc 100644 --- a/android/hal-ipc.c +++ b/android/hal-ipc.c @@ -462,8 +462,7 @@ int hal_ipc_cmd(uint8_t service_id, uint8_t opcode, uint16_t len, void *param, } } - if (rsp_len) - *rsp_len = cmd.len; + *rsp_len = cmd.len; return BT_STATUS_SUCCESS; -- 2.47.3