OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
344ca41
)
Remove redundant added bta_hh_find_cb call in read_rpt_clt_cfg
author
liuchao
<liuchao741@huawei.com>
Mon, 5 Dec 2016 08:13:39 +0000
(16:13 +0800)
committer
liuchao
<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
patch
|
blob
|
history
diff --git
a/bta/hh/bta_hh_le.cc
b/bta/hh/bta_hh_le.cc
index
1d7e962
..
33f4dee
100644
(file)
--- a/
bta/hh/bta_hh_le.cc
+++ b/
bta/hh/bta_hh_le.cc
@@
-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;