]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: mxs-auart: Use PTR_ERR_OR_ZERO() to simplify the code
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 10 Sep 2016 12:22:17 +0000 (12:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 16:54:34 +0000 (18:54 +0200)
commit0d2665b6bcfd6b7df828582a0b8a12d29691b66d
treec29b562ddda5c3731c006414af449d26b9de6754
parent5d7519dfc963ec8b6a10a51356840580fc005a1e
serial: mxs-auart: Use PTR_ERR_OR_ZERO() to simplify the code

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

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c