summaryrefslogtreecommitdiff
path: root/android/hal-sco.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-07-18 17:35:29 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-07-21 11:39:27 +0300
commitff3127350168d79e68ffd363dbc0e6fbfe40f04b (patch)
treefac4c8a1aa6e55c4b9a21c2b6adffd8caad7943c /android/hal-sco.c
parentfc516c2c7f22eb28ad41bded4d53d746677d4589 (diff)
downloadbluez-ff3127350168d79e68ffd363dbc0e6fbfe40f04b.tar.gz
android/hal-sco: Remove unneeded check
rsp_len cannot be NULL since it checked for NULL in the beginning of the function.
Diffstat (limited to 'android/hal-sco.c')
-rw-r--r--android/hal-sco.c3
1 files changed, 1 insertions, 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;