提交 b6501dd8 编写于 作者: K Konrad Zapalowicz 提交者: Greg Kroah-Hartman

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: NKonrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 333f4eb1
...@@ -767,9 +767,6 @@ static void cls_param(struct jsm_channel *ch) ...@@ -767,9 +767,6 @@ static void cls_param(struct jsm_channel *ch)
ier = readb(&ch->ch_cls_uart->ier); ier = readb(&ch->ch_cls_uart->ier);
uart_lcr = readb(&ch->ch_cls_uart->lcr); uart_lcr = readb(&ch->ch_cls_uart->lcr);
if (baud == 0)
baud = 9600;
quot = ch->ch_bd->bd_dividend / baud; quot = ch->ch_bd->bd_dividend / baud;
if (quot != 0) { if (quot != 0) {
......
...@@ -1037,9 +1037,6 @@ static void neo_param(struct jsm_channel *ch) ...@@ -1037,9 +1037,6 @@ static void neo_param(struct jsm_channel *ch)
ier = readb(&ch->ch_neo_uart->ier); ier = readb(&ch->ch_neo_uart->ier);
uart_lcr = readb(&ch->ch_neo_uart->lcr); uart_lcr = readb(&ch->ch_neo_uart->lcr);
if (baud == 0)
baud = 9600;
quot = ch->ch_bd->bd_dividend / baud; quot = ch->ch_bd->bd_dividend / baud;
if (quot != 0) { if (quot != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册