powerpc/fsl_pci: Fix ptr_ret.cocci warnings
authorVasyl Gomonovych <gomonovych@gmail.com>
Mon, 27 Nov 2017 21:37:33 +0000 (22:37 +0100)
committerScott Wood <oss@buserror.net>
Sun, 21 Jan 2018 05:08:46 +0000 (23:08 -0600)
commitd038386a0cecaf5283745f951bc35c49bd78da22
tree52fda8b12de626c43c80425499180ae49e5ca9f3
parentbb8651e5ce2c23c36998b263272ab2f9203f5a2e
powerpc/fsl_pci: Fix ptr_ret.cocci warnings

arch/powerpc/sysdev/fsl_pci.c:1307:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/sysdev/fsl_pci.c