Skip to content

Commit

Permalink
serial: jsm: Remove unnecessary if statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Konrad Zapalowicz authored and Greg Kroah-Hartman committed Nov 26, 2014
1 parent 333f4eb commit b6501dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions drivers/tty/serial/jsm/jsm_cls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 0 additions & 3 deletions drivers/tty/serial/jsm/jsm_neo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b6501dd

Please sign in to comment.