sh-pfc: Use PTR_ERR_OR_ZERO() to simplify the code
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 6 Jul 2016 12:03:32 +0000 (12:03 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 11 Jul 2016 07:51:34 +0000 (09:51 +0200)
commitf7973d8ba01648bb878fa30dffe3a18c41081c44
treed9b434cbd54e166bd2d95179cc248d2788933531
parentaeb8753b6810df55559bcb8bdf88d88221f1521a
sh-pfc: Use PTR_ERR_OR_ZERO() to simplify the code

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/pinctrl.c