diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-08-05 04:26:53 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-08-05 04:26:53 +0000 |
commit | e602dbfade3e4ef56ef04a81489ba0374133a313 (patch) | |
tree | 880c19b3b64b781b738f5c907f6fdcdc893e69a7 /src/hci.c | |
parent | 6db62cfa3a8de69270cc5e5689b633f43c02e041 (diff) |
Cleanup
Diffstat (limited to 'src/hci.c')
-rw-r--r-- | src/hci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |