serial: pmac_zilog: remove unused uart_pmac_port::termios_cache
authorJiri Slaby <jslaby@suse.cz>
Thu, 19 May 2022 07:56:51 +0000 (09:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:23:19 +0000 (18:23 +0200)
struct uart_pmac_port contains termios_cache. It is only written and
never read. Remove it as it only occupies space.

Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220519075653.31356-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pmac_zilog.c
drivers/tty/serial/pmac_zilog.h

index 2953ff64a892d78ab3f24d99c530eb91b7ea2b9a..9a2150bf477a308b7298be052ef0b67a8f09638e 100644 (file)
@@ -1231,8 +1231,6 @@ static void __pmz_set_termios(struct uart_port *port, struct ktermios *termios,
 
        pmz_debug("pmz: set_termios()\n");
 
-       memcpy(&uap->termios_cache, termios, sizeof(struct ktermios));
-
        /* XXX Check which revs of machines actually allow 1 and 4Mb speeds
         * on the IR dongle. Note that the IRTTY driver currently doesn't know
         * about the FIR mode and high speed modes. So these are unused. For
index 87337b748d6d159bcf709544eb8ae0c629e16ace..837b97ca0a9085ba5d03336d32f3cc0154433ff2 100644 (file)
@@ -55,8 +55,6 @@ struct uart_pmac_port {
        volatile u8                     __iomem *data_reg;
 
        unsigned char                   irq_name[8];
-
-       struct ktermios                 termios_cache;
 };
 
 #define to_pmz(p) ((struct uart_pmac_port *)(p))