]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mctrl-gpio: drop usages of IS_ERR_OR_NULL
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 19 May 2015 19:56:29 +0000 (21:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 20:06:08 +0000 (13:06 -0700)
commit3af54eedc1af66b5a3f9eeac0dfae8bd2afafbb8
tree35669da4b527ac0b238a173d2e3c2917ebdf85e4
parent304c70581ead0f8bc1011a52091127ef52f15d28
serial: mctrl-gpio: drop usages of IS_ERR_OR_NULL

The function mctrl_gpio_init returns failure if the assignment to any
member of the gpio array results in an error pointer.  So there is no
need to check for such error values in the other functions.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_mctrl_gpio.c