Skip to contentSkip to conversation

drivers:bluetooth:Remove unneeded code in the function,hci_uart_tty_open for the file,hci_ldisc.c

PATCH New Nicholas Krause 1 participant 1 message Dec 28, 2014 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/bluetooth/hci_ldisc.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/bluetooth/hci_ldisc.c +0 -5
index dc487b5..356f5fb 100644
@@ -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