aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2013-11-06 02:58:13 -0500
committerDavid S. Miller <davem@davemloft.net>2013-11-07 03:01:59 -0500
commit17102f8be41699525cfeeab02adbaf969b156731 (patch)
tree05094ec2c661ea0210dd36665e5c55600adc61ba
parentc1fcbaa57a9fe6337b2ab718255d3f2d157efc1c (diff)
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>
-rw-r--r--drivers/net/ethernet/i825xx/82596.c4
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)
1527 if (debug >= 0) 1527 if (debug >= 0)
1528 i596_debug = debug; 1528 i596_debug = debug;
1529 dev_82596 = i82596_probe(-1); 1529 dev_82596 = i82596_probe(-1);
1530 if (IS_ERR(dev_82596)) 1530 return PTR_ERR_OR_ZERO(dev_82596);
1531 return PTR_ERR(dev_82596);
1532 return 0;
1533} 1531}
1534 1532
1535void __exit cleanup_module(void) 1533void __exit cleanup_module(void)