Re: [PATCH] serial: mctrl_gpio: Fix passing zero to 'ERR_PTR' warning

2020-11-02 Thread Jiri Slaby
On 31. 10. 20, 4:05, YueHaibing wrote: drivers/tty/serial/serial_mctrl_gpio.c:214 mctrl_gpio_init() warn: passing zero to 'ERR_PTR' gpiod_to_irq() never return 0, so remove the useless test and make code more clear. Signed-off-by: YueHaibing Reviewed-by: Jiri Slaby --- drivers/tty/ser

[PATCH] serial: mctrl_gpio: Fix passing zero to 'ERR_PTR' warning

2020-10-30 Thread YueHaibing
drivers/tty/serial/serial_mctrl_gpio.c:214 mctrl_gpio_init() warn: passing zero to 'ERR_PTR' gpiod_to_irq() never return 0, so remove the useless test and make code more clear. Signed-off-by: YueHaibing --- drivers/tty/serial/serial_mctrl_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti