From 581622f8349b7677db971eecca7f72c9d3598bf0 Mon Sep 17 00:00:00 2001 From: yanlaijun Date: Thu, 17 Dec 2015 09:53:54 +0800 Subject: [PATCH] Remove repeated code in HF BTIF init function. Change-Id: I25a07e9cdb29ef31696a156c6f7ff5b57f4f5cfb Signed-off-by: yanlaijun --- btif/src/btif_hf.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c index 74910a36f..aef259d3c 100644 --- a/btif/src/btif_hf.c +++ b/btif/src/btif_hf.c @@ -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) -- 2.11.0