jsm: removing ch_old_baud field
authorBreno Leitão <leitao@linux.vnet.ibm.com>
Tue, 29 Sep 2009 18:16:56 +0000 (15:16 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:02 +0000 (15:18 -0800)
Currently the field jsm_channel->ch_old_baud is not used, just
assigned in a lot of places but never used. This patches removes
this field.

Signed-off-by: Breno Leitão <leitao@linux.vnet.ibm.com>
Cc: Scott Kilau <scottk@digi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/jsm/jsm.h
drivers/serial/jsm/jsm_neo.c
drivers/serial/jsm/jsm_tty.c

index afcbee24a6b21f54973b19f29aff17701890a88c..d413e4a6aa9b8a13078a2ff9934b3dcfb4385d50 100644 (file)
@@ -215,8 +215,6 @@ struct jsm_channel {
        u8              ch_stopc;       /* Stop character               */
        u8              ch_startc;      /* Start character              */
 
-       u32             ch_old_baud;    /* Cache of the current baud */
-
        u32             ch_wopen;       /* Waiting for open process cnt */
 
        u8              ch_mostat;      /* FEP output modem status      */
index 088e702ef5f329ec8120d2a5cb8640f23059534b..bee37274cc9a9fe7aa74e27d4c0c774d745b904f 100644 (file)
@@ -954,7 +954,6 @@ static void neo_param(struct jsm_channel *ch)
                ch->ch_flags |= (CH_BAUD0);
                ch->ch_mostat &= ~(UART_MCR_RTS | UART_MCR_DTR);
                neo_assert_modem_signals(ch);
-               ch->ch_old_baud = 0;
                return;
 
        } else {
@@ -1041,7 +1040,6 @@ static void neo_param(struct jsm_channel *ch)
        quot = ch->ch_bd->bd_dividend / baud;
 
        if (quot != 0) {
-               ch->ch_old_baud = baud;
                writeb(UART_LCR_DLAB, &ch->ch_neo_uart->lcr);
                writeb((quot & 0xff), &ch->ch_neo_uart->txrx);
                writeb((quot >> 8), &ch->ch_neo_uart->ier);
index 6423dfb825f4ea2c6fe584cec57c02342e896fca..1bcad596f3d6d9cc13f2c5039a492d550f942964 100644 (file)
@@ -296,8 +296,6 @@ static void jsm_tty_close(struct uart_port *port)
                bd->bd_ops->assert_modem_signals(channel);
        }
 
-       channel->ch_old_baud = 0;
-
        /* Turn off UART interrupts for this port */
        channel->ch_bd->bd_ops->uart_off(channel);