From: Jiri Slaby Date: Wed, 14 Jul 2021 09:13:14 +0000 (+0200) Subject: amiserial: remove unused state from shutdown X-Git-Tag: v5.15-rc1~153^2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b869a06a2790a2d1f3ee965e8f38246bfc32d24;p=thirdparty%2Flinux.git amiserial: remove unused state from shutdown 'state' variable is only set but never read in amiserial's shutdown. Drop it. It was like this since the driver was added to the tree as far as I can tell. Signed-off-by: Jiri Slaby Link: https://lore.kernel.org/r/20210714091314.8292-11-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index dffaff5a587a7..7ad103e128ac4 100644 --- a/drivers/tty/amiserial.c +++ b/drivers/tty/amiserial.c @@ -517,13 +517,10 @@ errout: static void shutdown(struct tty_struct *tty, struct serial_state *info) { unsigned long flags; - struct serial_state *state; if (!tty_port_initialized(&info->tport)) return; - state = info; - #ifdef SERIAL_DEBUG_OPEN printk("Shutting down serial port %d ....\n", info->line); #endif