summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2021-07-14 12:13:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-21 13:49:51 +0300
commit5b869a06a2790a2d1f3ee965e8f38246bfc32d24 (patch)
treeb038de3d4644b8bbf3c14de84512f11d626d888d /drivers/tty
parent6cc7bda16dfd4a5d89039302cf1668f9820dfb77 (diff)
downloadlinux-5b869a06a2790a2d1f3ee965e8f38246bfc32d24.tar.xz
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 <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210714091314.8292-11-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/amiserial.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c
index dffaff5a587a..7ad103e128ac 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