summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-08-05 04:26:53 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-08-05 04:26:53 +0000
commite602dbfade3e4ef56ef04a81489ba0374133a313 (patch)
tree880c19b3b64b781b738f5c907f6fdcdc893e69a7
parent6db62cfa3a8de69270cc5e5689b633f43c02e041 (diff)
Cleanup
-rw-r--r--src/hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hci.c b/src/hci.c
index 0aca162f..2447ae9b 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -472,7 +472,7 @@ int hci_for_each_dev(int flag, int (*func)(int dd, int dev_id, long arg), long a
dl->dev_num = HCI_MAX_DEV;
dr = dl->dev_req;
- if (ioctl(sk, HCIGETDEVLIST, (void *) dl))
+ if (ioctl(sk, HCIGETDEVLIST, (void *) dl) < 0)
goto free;
for (i = 0; i < dl->dev_num; i++, dr++) {