Manually convert to unary where coccinelle could not
Test: build
Change-Id: I7b5ea758b94bf225e8776f64256d644c3e96b198
diff --git a/bta/dm/bta_dm_act.cc b/bta/dm/bta_dm_act.cc
index b66b1b5..283ea88 100644
--- a/bta/dm/bta_dm_act.cc
+++ b/bta/dm/bta_dm_act.cc
@@ -2090,8 +2090,7 @@
((bta_dm_search_cb.p_btm_inq_info == NULL) ||
(bta_dm_search_cb.p_btm_inq_info &&
(!bta_dm_search_cb.p_btm_inq_info->appl_knows_rem_name)))) {
- if (bta_dm_read_remote_device_name(bta_dm_search_cb.peer_bdaddr,
- transport) == true)
+ if (bta_dm_read_remote_device_name(bta_dm_search_cb.peer_bdaddr, transport))
return;
/* starting name discovery failed */
@@ -2107,7 +2106,7 @@
bta_dm_search_cb.uuid_to_search = bta_dm_search_cb.num_uuid;
if ((bta_dm_search_cb.p_btm_inq_info != NULL) &&
bta_dm_search_cb.services != BTA_USER_SERVICE_MASK &&
- (bta_dm_search_cb.sdp_search == false)) {
+ (!bta_dm_search_cb.sdp_search)) {
/* check if EIR provides the information of supported services */
bta_dm_eir_search_services(&bta_dm_search_cb.p_btm_inq_info->results,
&bta_dm_search_cb.services_to_search,