diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2013-11-06 15:58:13 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-07 03:01:59 -0500 |
commit | 17102f8be41699525cfeeab02adbaf969b156731 (patch) | |
tree | 05094ec2c661ea0210dd36665e5c55600adc61ba /drivers/net/ethernet/i825xx | |
parent | c1fcbaa57a9fe6337b2ab718255d3f2d157efc1c (diff) | |
download | linux-17102f8be41699525cfeeab02adbaf969b156731.tar.gz linux-17102f8be41699525cfeeab02adbaf969b156731.tar.bz2 linux-17102f8be41699525cfeeab02adbaf969b156731.zip |
net:drivers/net: 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/i825xx')
-rw-r--r-- | drivers/net/ethernet/i825xx/82596.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/i825xx/82596.c b/drivers/net/ethernet/i825xx/82596.c index a15877affc9b..7ce6379fd1a3 100644 --- a/drivers/net/ethernet/i825xx/82596.c +++ b/drivers/net/ethernet/i825xx/82596.c @@ -1527,9 +1527,7 @@ int __init init_module(void) if (debug >= 0) i596_debug = debug; dev_82596 = i82596_probe(-1); - if (IS_ERR(dev_82596)) - return PTR_ERR(dev_82596); - return 0; + return PTR_ERR_OR_ZERO(dev_82596); } void __exit cleanup_module(void) |