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)
commit445df7ff3fd1a0a914a434881c116b856e236d78
tree35669da4b527ac0b238a173d2e3c2917ebdf85e4
parentc33eecc7abce688208430b2bb28be9442673ebef
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