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

Commit 72550d3c authored by yanlaijun's avatar yanlaijun
Browse files

Remove repeated code in HF BTIF init function.



Change-Id: I25a07e9cdb29ef31696a156c6f7ff5b57f4f5cfb
Signed-off-by: default avataryanlaijun <yan.laijun@gmail.com>
parent 57760c32
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -714,10 +714,6 @@ static bt_status_t init( bthf_callbacks_t* callbacks, int max_hf_clients)
    bt_hf_callbacks = callbacks;
    memset(&btif_hf_cb, 0, sizeof(btif_hf_cb));

    memset(&btif_hf_cb, 0, sizeof(btif_hf_cb));
    btif_max_hf_clients = max_hf_clients;
    BTIF_TRACE_DEBUG("btif_max_hf_clients = %d", btif_max_hf_clients);

    /* Invoke the enable service API to the core to set the appropriate service_id
     * Internally, the HSP_SERVICE_ID shall also be enabled if HFP is enabled (phone)
     * othwerwise only HSP is enabled (tablet)