bluetooth: fix unused but set variable
Change-Id: Ie63b0a28c352bc9997a2a70b3e335af2b3cc1bc3 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6714 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
3386b8b785
commit
30e762a797
@ -125,6 +125,7 @@ spawn_device(usb_device usb_dev)
|
||||
BLUETOOTH_DEVICE_DEVFS_NAME "cmd_complete");
|
||||
if (new_bt_dev->cmd_complete < 0) {
|
||||
err = new_bt_dev->cmd_complete;
|
||||
ERROR("%s: Unable to create bt device command semaphore: %" B_PRId32 "\n", __func__, err);
|
||||
goto bail0;
|
||||
}
|
||||
|
||||
@ -132,6 +133,7 @@ spawn_device(usb_device usb_dev)
|
||||
new_bt_dev->lock = create_sem(1, BLUETOOTH_DEVICE_DEVFS_NAME "lock");
|
||||
if (new_bt_dev->lock < 0) {
|
||||
err = new_bt_dev->lock;
|
||||
ERROR("%s: Unable to create bt device lock semaphore: %" B_PRId32 "\n", __func__, err);
|
||||
goto bail1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user