diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-07-18 17:35:29 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-21 11:39:27 +0300 |
commit | ff3127350168d79e68ffd363dbc0e6fbfe40f04b (patch) | |
tree | fac4c8a1aa6e55c4b9a21c2b6adffd8caad7943c /android/hal-sco.c | |
parent | fc516c2c7f22eb28ad41bded4d53d746677d4589 (diff) | |
download | bluez-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.c | 3 |
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; |