From ceb7edf308040715ae57128c758bae154da5ac8e Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Tue, 31 Jul 2007 12:27:23 +0000 Subject: hcid: fixed logic error for hci_devinfo calls --- hcid/main.c | 4 ++-- 1 file 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; } -- cgit