]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
tty: serial: jsm: remove redundant pointer ts
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Nov 2017 11:41:07 +0000 (11:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 11:58:31 +0000 (12:58 +0100)
Pointer ts is assigned a value that is never read, ts is therefore
redundant and can be removed. Cleans up clang warning:

drivers/tty/serial/jsm/jsm_tty.c:285:2: warning: Value stored to 'ts'
is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/jsm/jsm_tty.c

index cbbadafe61fb87a740fee53e258209d948d36a91..b34def0a3fb3aaf5a48b5cae8e9e45ff411461b6 100644 (file)
@@ -276,14 +276,12 @@ static int jsm_tty_open(struct uart_port *port)
 static void jsm_tty_close(struct uart_port *port)
 {
        struct jsm_board *bd;
-       struct ktermios *ts;
        struct jsm_channel *channel =
                container_of(port, struct jsm_channel, uart_port);
 
        jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "start\n");
 
        bd = channel->ch_bd;
-       ts = &port->state->port.tty->termios;
 
        channel->ch_flags &= ~(CH_STOPI);