phy: Use PTR_ERR_OR_ZERO to fix warning raised by coccinelle
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 13 Nov 2014 11:47:43 +0000 (12:47 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 26 Nov 2014 05:37:13 +0000 (11:07 +0530)
commitc1fc0050102150481ad4ba7e6449b3aa6e88d6e5
tree71acad5592486cb83bf31712e0922c0d9acc0d96
parent556186a02c441e8fb03aa4c87d39bdc8ef95820e
phy: Use PTR_ERR_OR_ZERO to fix warning raised by coccinelle

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

Generated by: coccinelle/api/ptr_ret.cocci

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-berlin-sata.c
drivers/phy/phy-hix5hd2-sata.c
drivers/phy/phy-miphy365x.c
drivers/phy/phy-stih41x-usb.c