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:
PulkoMandy 2023-07-24 14:55:01 +02:00 committed by waddlesplash
parent 3386b8b785
commit 30e762a797

View File

@ -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;
}