amiserial: remove unused state from shutdown
authorJiri Slaby <jslaby@suse.cz>
Wed, 14 Jul 2021 09:13:14 +0000 (11:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 10:49:51 +0000 (12:49 +0200)
'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 <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210714091314.8292-11-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c

index dffaff5a587a77ad6c660695910539fb3a858495..7ad103e128ac487f4a4d43d38f17374eee6c79b9 100644 (file)
@@ -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