emulator: Minor coding style fix

This commit is contained in:
Johan Hedberg 2014-03-20 14:15:31 +02:00
parent fa34a2dc71
commit 0e6b13b702

View File

@ -874,9 +874,10 @@ failed:
static void inquiry_cancel(struct btdev *btdev)
{
uint8_t status = BT_HCI_ERR_COMMAND_DISALLOWED;
uint8_t status;
if (!btdev->inquiry_id) {
status = BT_HCI_ERR_COMMAND_DISALLOWED;
cmd_complete(btdev, BT_HCI_CMD_INQUIRY_CANCEL, &status,
sizeof(status));
return;