OSDN Git Service

Remove redundant added bta_hh_find_cb call in read_rpt_clt_cfg
authorliuchao <liuchao741@huawei.com>
Mon, 5 Dec 2016 08:13:39 +0000 (16:13 +0800)
committerliuchao <liuchao741@huawei.com>
Mon, 5 Dec 2016 08:13:39 +0000 (16:13 +0800)
This fixes an redundant call to bta_hh_find_cb to get a bta_hh_index

Test: mm -j 8
Change-Id: I455837d00d992248db8d8432b85227d1f92b3b02

bta/hh/bta_hh_le.cc

index 1d7e962..33f4dee 100644 (file)
@@ -2270,7 +2270,6 @@ void bta_hh_le_hid_read_rpt_clt_cfg(BD_ADDR bd_addr, uint8_t rpt_id) {
   uint8_t index = BTA_HH_IDX_INVALID;
 
   index = bta_hh_find_cb(bd_addr);
-  index = bta_hh_find_cb(bd_addr);
   if (index == BTA_HH_IDX_INVALID) {
     APPL_TRACE_ERROR("%s: unknown device", __func__);
     return;