tty: serial: 8250_mtk: Use PTR_ERR_OR_ZERO
authorHimanshu Jha <himanshujha199640@gmail.com>
Sun, 27 Aug 2017 06:31:41 +0000 (12:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 18:51:20 +0000 (20:51 +0200)
commitd77dc47fce23daf57f60cb407698108229a33e8c
tree90ad871110af4fd69358a328064cfdf201233b3f
parentdde68266ba0da457954cf13c907494ab899ea714
tty: serial: 8250_mtk: Use PTR_ERR_OR_ZERO

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_mtk.c