jsm: remove the ch_custom_speed field
authorBreno Leitão <leitao@linux.vnet.ibm.com>
Tue, 29 Sep 2009 18:16:55 +0000 (15:16 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:02 +0000 (15:18 -0800)
Currently the ch_custom_speed field exists but is never used,
so, this patch removes it.

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

index 4e5f3bde0461ca4c8eb4638bcc11643466c697ab..afcbee24a6b21f54973b19f29aff17701890a88c 100644 (file)
@@ -216,7 +216,6 @@ struct jsm_channel {
        u8              ch_startc;      /* Start character              */
 
        u32             ch_old_baud;    /* Cache of the current baud */
-       u32             ch_custom_speed;/* Custom baud, if set */
 
        u32             ch_wopen;       /* Waiting for open process cnt */
 
index b4b124e4828fc31f85de069a554c980f60ccad65..088e702ef5f329ec8120d2a5cb8640f23059534b 100644 (file)
@@ -957,10 +957,6 @@ static void neo_param(struct jsm_channel *ch)
                ch->ch_old_baud = 0;
                return;
 
-       } else if (ch->ch_custom_speed) {
-                       baud = ch->ch_custom_speed;
-                       if (ch->ch_flags & CH_BAUD0)
-                               ch->ch_flags &= ~(CH_BAUD0);
        } else {
                int i;
                unsigned int cflag;