Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6e981c7 authored by Peter Hurley's avatar Peter Hurley Committed by Marcel Holtmann
Browse files

Bluetooth: hci_ldisc: Remove dead code



The N_HCI ldisc does not define a flush_buffer() ldisc method, so
the check when opening the ldisc is always false.

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent cab054ab
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -462,13 +462,7 @@ static int hci_uart_tty_open(struct tty_struct *tty)
	INIT_WORK(&hu->init_ready, hci_uart_init_work);
	INIT_WORK(&hu->write_work, hci_uart_write_work);

	/* Flush any pending characters in the driver and line discipline. */

	/* FIXME: why is this needed. Note don't use ldisc_ref here as the
	   open path is before the ldisc is referencable */

	if (tty->ldisc->ops->flush_buffer)
		tty->ldisc->ops->flush_buffer(tty);
	/* Flush any pending characters in the driver */
	tty_driver_flush_buffer(tty);

	return 0;