summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
Diffstat (limited to 'hcid')
-rw-r--r--hcid/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 42cfab89..b58861a6 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -159,7 +159,7 @@ static struct device_opts *get_opts(int hdev)
if (sock < 0)
goto no_address;
- if (!hci_devinfo(hdev, &di) < 0) {
+ if (hci_devinfo(hdev, &di) < 0) {
close(sock);
goto no_address;
}
@@ -214,7 +214,7 @@ int get_discoverable_timeout(int hdev)
if (sock < 0)
goto no_address;
- if (!hci_devinfo(hdev, &di) < 0) {
+ if (hci_devinfo(hdev, &di) < 0) {
close(sock);
goto no_address;
}