summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/jsm/jsm_cls.c
diff options
context:
space:
mode:
authorKonrad Zapalowicz <bergo.torino@gmail.com>2014-11-09 02:22:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-25 17:06:38 -0800
commitb6501dd86ff085a8687d157c016f46a34e46bf5b (patch)
tree5e04f1ac2825ae4b3bdf6d05286b6f77c51bb035 /drivers/tty/serial/jsm/jsm_cls.c
parent333f4eb1ba46b2d75fb3dc46ebed13aa1d0c9639 (diff)
downloadtalos-obmc-linux-b6501dd86ff085a8687d157c016f46a34e46bf5b.tar.gz
talos-obmc-linux-b6501dd86ff085a8687d157c016f46a34e46bf5b.zip
serial: jsm: Remove unnecessary if statement
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>
Diffstat (limited to 'drivers/tty/serial/jsm/jsm_cls.c')
-rw-r--r--drivers/tty/serial/jsm/jsm_cls.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/serial/jsm/jsm_cls.c b/drivers/tty/serial/jsm/jsm_cls.c
index 3df9112daa38..bfb0681195b6 100644
--- a/drivers/tty/serial/jsm/jsm_cls.c
+++ b/drivers/tty/serial/jsm/jsm_cls.c
@@ -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) {
OpenPOWER on IntegriCloud