From: Hoegeun Kwon Date: Tue, 4 Jul 2023 08:34:52 +0000 (+0900) Subject: Bluetooth: Fix build warning X-Git-Tag: accepted/tizen/unified/riscv/20230725.071352~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=957688087a2afa1833e1a7f2534220707ecafa91;p=platform%2Fkernel%2Flinux-starfive.git Bluetooth: Fix build warning 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 --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index e78c825eaf4c..2c9e47ab5e4e 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -6466,10 +6466,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;