phy:phy-lantiq-rcu-usb2: Use PTR_ERR_OR_ZERO to replace the open coded version
authorzhong jiang <zhongjiang@huawei.com>
Thu, 16 Aug 2018 15:58:55 +0000 (23:58 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 10 Sep 2018 08:58:37 +0000 (14:28 +0530)
commit9be08a27a1588d0b0143486f96c7a08f8cfadae8
tree683156d256a743ec4c7b72354f0d8721943ccad5
parent528648143354e0551087adfad27c174083316ca3
phy:phy-lantiq-rcu-usb2: Use PTR_ERR_OR_ZERO to replace the open coded version

PTR_ERR_OR_ZERO has implemented the if(IS_ERR(...)) + PTR_ERR, So
just replace them rather than duplicating its implement.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/lantiq/phy-lantiq-rcu-usb2.c