Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0c9d6d2 authored by Yan Laijun's avatar Yan Laijun Committed by Andre Eisenbach
Browse files

Correctly verify return value of BTM_CancelInquiry



Change-Id: Iefb38023bc2b3e390eec14516f954e36f34ed5b4
Signed-off-by: default avatarYan Laijun <yan.laijun@gmail.com>
parent 60672482
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1210,7 +1210,7 @@ void bta_dm_search_cancel (tBTA_DM_MSG *p_data)

    if (BTM_IsInquiryActive())
    {
        if (BTM_CancelInquiry() != BTM_CMD_STARTED)
        if (BTM_CancelInquiry() == BTM_SUCCESS)
        {
            bta_dm_search_cancel_notify(NULL);
            p_msg = (tBTA_DM_MSG *) osi_getbuf(sizeof(tBTA_DM_MSG));