drivers:bluetooth:Remove unneeded code in the function,hci_uart_tty_open for the file,hci_ldisc.c
PATCH 1/1 drivers:bluetooth:Remove unneeded code in the function,hci_uart_tty_open for the file,hci_ldisc.c
Removes the unneeded code that flushs the buffer if ldisc is setup. This if statement is not needed and flushing of the ldisc buffer on this tty is no needed due to ldisc not being setup at this point in the file,hci_ldisc.c.
Signed-off-by Nicholas Krause <[email protected]>
--- drivers/bluetooth/hci_ldisc.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/bluetooth/hci_ldisc.c +0 -5
@@ -299,11 +299,6 @@ static int hci_uart_tty_open(struct tty_struct *tty)/* 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);tty_driver_flush_buffer (tty);return 0 ;
Signature · 1 line
2.1.0