diff options
author | Konrad Zapalowicz <bergo.torino@gmail.com> | 2014-11-08 20:22:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-25 20:06:38 -0500 |
commit | b6501dd86ff085a8687d157c016f46a34e46bf5b (patch) | |
tree | 5e04f1ac2825ae4b3bdf6d05286b6f77c51bb035 | |
parent | 333f4eb1ba46b2d75fb3dc46ebed13aa1d0c9639 (diff) |
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>
-rw-r--r-- | drivers/tty/serial/jsm/jsm_cls.c | 3 | ||||
-rw-r--r-- | drivers/tty/serial/jsm/jsm_neo.c | 3 |
2 files changed, 0 insertions, 6 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) | |||
767 | ier = readb(&ch->ch_cls_uart->ier); | 767 | ier = readb(&ch->ch_cls_uart->ier); |
768 | uart_lcr = readb(&ch->ch_cls_uart->lcr); | 768 | uart_lcr = readb(&ch->ch_cls_uart->lcr); |
769 | 769 | ||
770 | if (baud == 0) | ||
771 | baud = 9600; | ||
772 | |||
773 | quot = ch->ch_bd->bd_dividend / baud; | 770 | quot = ch->ch_bd->bd_dividend / baud; |
774 | 771 | ||
775 | if (quot != 0) { | 772 | 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) | |||
1037 | ier = readb(&ch->ch_neo_uart->ier); | 1037 | ier = readb(&ch->ch_neo_uart->ier); |
1038 | uart_lcr = readb(&ch->ch_neo_uart->lcr); | 1038 | uart_lcr = readb(&ch->ch_neo_uart->lcr); |
1039 | 1039 | ||
1040 | if (baud == 0) | ||
1041 | baud = 9600; | ||
1042 | |||
1043 | quot = ch->ch_bd->bd_dividend / baud; | 1040 | quot = ch->ch_bd->bd_dividend / baud; |
1044 | 1041 | ||
1045 | if (quot != 0) { | 1042 | if (quot != 0) { |