PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.
Sweep of the simple cases. Cc: netdev@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user