diff options
| author | Ilpo Järvinen <[email protected]> | 2022-08-16 11:57:36 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-08-30 12:22:34 +0000 |
| commit | 8b7d2d95cf82f8ca034ac65d0f39a2b3359b680f (patch) | |
| tree | 0ac6a1d8c0887eaf383623a007988f47796a3f1a /drivers/tty/n_tty.c | |
| parent | tty: Make tty_termios_copy_hw() old ktermios const (diff) | |
| download | kernel-8b7d2d95cf82f8ca034ac65d0f39a2b3359b680f.tar.gz kernel-8b7d2d95cf82f8ca034ac65d0f39a2b3359b680f.zip | |
tty: Make ldisc ->set_termios() old ktermios const
There should be no reason to adjust old ktermios which is going to get
discarded anyway.
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/n_tty.c')
| -rw-r--r-- | drivers/tty/n_tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 3afdd9033a9c..597019690ae6 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -1758,7 +1758,7 @@ static int n_tty_receive_buf2(struct tty_struct *tty, const unsigned char *cp, * * Locking: Caller holds @tty->termios_rwsem */ -static void n_tty_set_termios(struct tty_struct *tty, struct ktermios *old) +static void n_tty_set_termios(struct tty_struct *tty, const struct ktermios *old) { struct n_tty_data *ldata = tty->disc_data; |
