summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2013-11-06 15:57:17 +0800
committerDavid S. Miller <davem@davemloft.net>2013-11-07 03:01:59 -0500
commitc1fcbaa57a9fe6337b2ab718255d3f2d157efc1c (patch)
treefa855a3983a42367cccc0ae26bfa7c707fac70ad /drivers/net/ethernet/smsc
parentf9bddcdf1fbbbab4996e079c5ea614baa1803b47 (diff)
downloadlinux-c1fcbaa57a9fe6337b2ab718255d3f2d157efc1c.tar.bz2
smsc: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc')
-rw-r--r--drivers/net/ethernet/smsc/smc9194.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/smsc/smc9194.c b/drivers/net/ethernet/smsc/smc9194.c
index 51aa9cf3a3e7..4092fed47e2f 100644
--- a/drivers/net/ethernet/smsc/smc9194.c
+++ b/drivers/net/ethernet/smsc/smc9194.c
@@ -1569,9 +1569,7 @@ int __init init_module(void)
/* copy the parameters from insmod into the device structure */
devSMC9194 = smc_init(-1);
- if (IS_ERR(devSMC9194))
- return PTR_ERR(devSMC9194);
- return 0;
+ return PTR_ERR_OR_ZERO(devSMC9194);
}
void __exit cleanup_module(void)