summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-07-31 12:27:23 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-07-31 12:27:23 +0000
commitceb7edf308040715ae57128c758bae154da5ac8e (patch)
tree8e886eae454e45f22c0955d93c4c96a5493cfc98
parentc9fa26929481af7a221c35f035878531de494a97 (diff)
hcid: fixed logic error for hci_devinfo calls
-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;
}