summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 6370e44c..b559e148 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -1588,9 +1588,6 @@ int cancel_periodic_discovery(struct btd_adapter *adapter)
int dd, err = 0;
uint16_t dev_id = adapter_get_dev_id(adapter);
- if (!(adapter_get_state(adapter) & PERIODIC_INQUIRY))
- return err;
-
dd = hci_open_dev(dev_id);
if (dd < 0)
return -ENODEV;