diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-04 13:35:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-04 13:35:03 -0400 |
commit | edeb280e49d38a5330db25463ef45f5466b0058a (patch) | |
tree | b003877aa4decad969b29daf03d4b6984530f18b /drivers | |
parent | d389c7d8988aecfdc06d9e9f9769af09e6592082 (diff) |
Fix uart_set_ldisc() function type
Commit 64e9159f5d2c4edf5fa6425031e556f8fddaf7e6 ("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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/serial_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 951a75ea6e3e..c9b64e73c987 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c | |||
@@ -1165,7 +1165,7 @@ out: | |||
1165 | return ret; | 1165 | return ret; |
1166 | } | 1166 | } |
1167 | 1167 | ||
1168 | static void uart_set_ldisc(struct tty_struct *tty, int ldisc) | 1168 | static void uart_set_ldisc(struct tty_struct *tty) |
1169 | { | 1169 | { |
1170 | struct uart_state *state = tty->driver_data; | 1170 | struct uart_state *state = tty->driver_data; |
1171 | struct uart_port *port = state->port; | 1171 | struct uart_port *port = state->port; |