From: Konrad Zapalowicz Date: Sun, 9 Nov 2014 01:22:17 +0000 (+0100) Subject: serial: jsm: Remove unnecessary if statement X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b6501dd86ff085a8687d157c016f46a34e46bf5b;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- 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) { diff --git a/drivers/tty/serial/jsm/jsm_neo.c b/drivers/tty/serial/jsm/jsm_neo.c index b9faee77a0ca..4b8196db02f3 100644 --- a/drivers/tty/serial/jsm/jsm_neo.c +++ b/drivers/tty/serial/jsm/jsm_neo.c @@ -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) {