serial: jsm: Remove unnecessary if statement
authorKonrad Zapalowicz <bergo.torino@gmail.com>
Sun, 9 Nov 2014 01:22:17 +0000 (02:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 01:06:38 +0000 (17:06 -0800)
The flow of {neo,cls}_param() shows that at this stage the baud rate
has a non-zero value. This fact makes the if clausule obsolete and
acknowledges it's removal.

Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/jsm/jsm_cls.c
drivers/tty/serial/jsm/jsm_neo.c

index 3df9112daa380ca85d998c48e55b4354e3ffe550..bfb0681195b600354babc4fcc923473ecbaf44b3 100644 (file)
@@ -767,9 +767,6 @@ static void cls_param(struct jsm_channel *ch)
        ier = readb(&ch->ch_cls_uart->ier);
        uart_lcr = readb(&ch->ch_cls_uart->lcr);
 
-       if (baud == 0)
-               baud = 9600;
-
        quot = ch->ch_bd->bd_dividend / baud;
 
        if (quot != 0) {
index b9faee77a0caa6503e5335307853b89b4fded86d..4b8196db02f3a5d44c5e47451e44781271579e2d 100644 (file)
@@ -1037,9 +1037,6 @@ static void neo_param(struct jsm_channel *ch)
        ier = readb(&ch->ch_neo_uart->ier);
        uart_lcr = readb(&ch->ch_neo_uart->lcr);
 
-       if (baud == 0)
-               baud = 9600;
-
        quot = ch->ch_bd->bd_dividend / baud;
 
        if (quot != 0) {