aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/sun3lance.c
diff options
context:
space:
mode:
authorRusty Russell <[email protected]>2013-07-15 01:50:32 +0000
committerRusty Russell <[email protected]>2013-07-15 01:55:01 +0000
commit8c6ffba0eddc8c110dbf444f51354ce42069abfc (patch)
tree1055a1cfdf7bd79d6e2c4b969d412780ff2d2209 /drivers/net/ethernet/amd/sun3lance.c
parentPTR_RET is now PTR_ERR_OR_ZERO (diff)
downloadkernel-8c6ffba0eddc8c110dbf444f51354ce42069abfc.tar.gz
kernel-8c6ffba0eddc8c110dbf444f51354ce42069abfc.zip
PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.
Sweep of the simple cases. Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Julia Lawall <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Acked-by: David S. Miller <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/amd/sun3lance.c')
-rw-r--r--drivers/net/ethernet/amd/sun3lance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/sun3lance.c b/drivers/net/ethernet/amd/sun3lance.c
index 4375abe61da1..d6b20296b8e4 100644
--- a/drivers/net/ethernet/amd/sun3lance.c
+++ b/drivers/net/ethernet/amd/sun3lance.c
@@ -940,7 +940,7 @@ static struct net_device *sun3lance_dev;
int __init init_module(void)
{
sun3lance_dev = sun3lance_probe(-1);
- return PTR_RET(sun3lance_dev);
+ return PTR_ERR_OR_ZERO(sun3lance_dev);
}
void __exit cleanup_module(void)