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>
This commit is contained in:

committed by
David S. Miller

parent
b6bb4dfcb1
commit
3ffd880d3c
@@ -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)
|
||||
|
Reference in New Issue
Block a user