serial: 8250_port: unify check of em485 variable
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 31 Aug 2016 16:46:56 +0000 (19:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Sep 2016 13:03:35 +0000 (15:03 +0200)
commitf3bf26326f1cd27b498b44618855512b2f19769b
tree5462de2dfc69f85cc7c95f092a26f75e31307473
parentb3965767d86cf4534dfe1affbde0453d3224ed7f
serial: 8250_port: unify check of em485 variable

Unify the check of em485 variable to be either (em485) or (!em485) instead of
the explicit comparison to NULL.

While here, remove redundant check in __do_stop_tx_rs485() and
__stop_tx_rs485() since the functions ain't called with NULL value of em485
variable.

Cc: "Matwey V. Kornilov" <matwey@sai.msu.ru>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c