diff options
Diffstat (limited to 'net/nfc/nci/uart.c')
-rw-r--r-- | net/nfc/nci/uart.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c index 21d8875673a4..c468eabd6943 100644 --- a/net/nfc/nci/uart.c +++ b/net/nfc/nci/uart.c | |||
@@ -171,14 +171,7 @@ static int nci_uart_tty_open(struct tty_struct *tty) | |||
171 | tty->disc_data = NULL; | 171 | tty->disc_data = NULL; |
172 | tty->receive_room = 65536; | 172 | tty->receive_room = 65536; |
173 | 173 | ||
174 | /* Flush any pending characters in the driver and line discipline. */ | 174 | /* Flush any pending characters in the driver */ |
175 | |||
176 | /* FIXME: why is this needed. Note don't use ldisc_ref here as the | ||
177 | * open path is before the ldisc is referencable. | ||
178 | */ | ||
179 | |||
180 | if (tty->ldisc->ops->flush_buffer) | ||
181 | tty->ldisc->ops->flush_buffer(tty); | ||
182 | tty_driver_flush_buffer(tty); | 175 | tty_driver_flush_buffer(tty); |
183 | 176 | ||
184 | return 0; | 177 | return 0; |