Revert "Bluetooth: hci_ldisc: check HCI_UART_PROTO_READY flag in HCIUARTGETPROTO"
This reverts commit fcac1fea69
.
This commit is contained in:
parent
8091d268fa
commit
10dedc6446
1 changed files with 1 additions and 2 deletions
|
@ -768,8 +768,7 @@ static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file *file,
|
|||
break;
|
||||
|
||||
case HCIUARTGETPROTO:
|
||||
if (test_bit(HCI_UART_PROTO_SET, &hu->flags) &&
|
||||
test_bit(HCI_UART_PROTO_READY, &hu->flags))
|
||||
if (test_bit(HCI_UART_PROTO_SET, &hu->flags))
|
||||
err = hu->proto->id;
|
||||
else
|
||||
err = -EUNATCH;
|
||||
|
|
Loading…
Reference in a new issue