NFC: nci: Remove dead code
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Jan 2016 06:40:53 +0000 (22:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 23:01:44 +0000 (15:01 -0800)
The N_NCI ldisc does not define a flush_buffer() ldisc method, so
the check when opening the ldisc is always false.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/nfc/nci/uart.c

index 21d8875673a42229f233ca20af640c53e325a4bb..c468eabd69430b1687d0b68b086e4883afc74bf9 100644 (file)
@@ -171,14 +171,7 @@ static int nci_uart_tty_open(struct tty_struct *tty)
        tty->disc_data = NULL;
        tty->receive_room = 65536;
 
-       /* 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;
This page took 0.027219 seconds and 5 git commands to generate.