1
0
Fork 0

Fix uart_set_ldisc() function type

Commit 64e9159f5d ("serial_core:
uart_set_ldisc infrastructure") introduced the ability for low-level
serial drivers to be informed when the tty ldisc changes.

However, the actual tty-layer function that does this callback for
serial devices was declared with the wrong type, having a spurious and
unused 'ldisc' argument.

This fixed the resulting compiler warning by just removing it.

Acked-by: Blithering Idiot <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
wifi-calibration
Linus Torvalds 2008-06-04 10:35:03 -07:00
parent d389c7d898
commit edeb280e49
1 changed files with 1 additions and 1 deletions

View File

@ -1165,7 +1165,7 @@ out:
return ret;
}
static void uart_set_ldisc(struct tty_struct *tty, int ldisc)
static void uart_set_ldisc(struct tty_struct *tty)
{
struct uart_state *state = tty->driver_data;
struct uart_port *port = state->port;