]> 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)
commit8aba87e1320a50f59bfb8f3670c69395146e56a3
tree35669da4b527ac0b238a173d2e3c2917ebdf85e4
parent0fac0bad0bed3f95c938e087418ea461867f2bc2
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