Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: pmac_zilog: remove unused uart_pmac_port::termios_cache

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>

authored by

Jiri Slaby and committed by
Greg Kroah-Hartman
ae1de093 a5ddc498

-4
-2
drivers/tty/serial/pmac_zilog.c
··· 1231 1231 1232 1232 pmz_debug("pmz: set_termios()\n"); 1233 1233 1234 - memcpy(&uap->termios_cache, termios, sizeof(struct ktermios)); 1235 - 1236 1234 /* XXX Check which revs of machines actually allow 1 and 4Mb speeds 1237 1235 * on the IR dongle. Note that the IRTTY driver currently doesn't know 1238 1236 * about the FIR mode and high speed modes. So these are unused. For
-2
drivers/tty/serial/pmac_zilog.h
··· 55 55 volatile u8 __iomem *data_reg; 56 56 57 57 unsigned char irq_name[8]; 58 - 59 - struct ktermios termios_cache; 60 58 }; 61 59 62 60 #define to_pmz(p) ((struct uart_pmac_port *)(p))