From dbc1d15b4cab580c6151a353eae26e46c44bac60 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Tue, 4 Jul 2023 17:34:52 +0900 Subject: [PATCH] Bluetooth: Fix build warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Occur build warning for unused variable, Fix warning net/bluetooth/hci_event.c: In function ‘process_adv_report’: net/bluetooth/hci_event.c:6470:7: warning: unused variable ‘match’ [-Wunused-variable] bool match; ^~~~~ net/bluetooth/hci_event.c:6469:26: warning: unused variable ‘d’ [-Wunused-variable] struct discovery_state *d = &hdev->discovery; Change-Id: I5c6778aea827e6d138009541991409834ea9cc07 Signed-off-by: Hoegeun Kwon --- net/bluetooth/hci_event.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 6e3edb2..ce3220e 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -6465,10 +6465,13 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr, u8 direct_addr_type, s8 rssi, u8 *data, u8 len, bool ext_adv, bool ctl_time, u64 instant) { +#ifndef TIZEN_BT struct discovery_state *d = &hdev->discovery; + bool match; +#endif struct smp_irk *irk; struct hci_conn *conn; - bool match, bdaddr_resolved; + bool bdaddr_resolved; u32 flags; u8 *ptr; -- 2.7.4