diff options
author | Silviu-Mihai Popescu <silviupopescu1990@gmail.com> | 2013-03-11 21:48:07 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-12 10:57:22 (GMT) |
commit | 3ffd880d3c6c63cdf575764da9e903fc3249937d (patch) | |
tree | 7b29b2653922f92ee70414a33c2f8d33879cfb51 /drivers/net/ethernet/amd/sun3lance.c | |
parent | b6bb4dfcb1803765e7d12a9807a8d4650545199a (diff) | |
download | linux-3ffd880d3c6c63cdf575764da9e903fc3249937d.tar.xz |
ethernet: amd: use PTR_RET instead of IS_ERR + PTR_ERR
This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase
readability.
Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
Acked-by: <Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/sun3lance.c')
-rw-r--r-- | drivers/net/ethernet/amd/sun3lance.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/amd/sun3lance.c b/drivers/net/ethernet/amd/sun3lance.c index de412d3..4375abe 100644 --- a/drivers/net/ethernet/amd/sun3lance.c +++ b/drivers/net/ethernet/amd/sun3lance.c @@ -940,9 +940,7 @@ static struct net_device *sun3lance_dev; int __init init_module(void) { sun3lance_dev = sun3lance_probe(-1); - if (IS_ERR(sun3lance_dev)) - return PTR_ERR(sun3lance_dev); - return 0; + return PTR_RET(sun3lance_dev); } void __exit cleanup_module(void) |