Re: [PATCH] Cleanup snmp6_alloc_dev()

2007-10-17 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Wed, 17 Oct 2007 14:44:44 +0400 > This functions is never called with NULL or not setup argument, > so the checks inside are redundant. > > Also, the return value is always -ENOMEM, so no need in > additional variable for this. > > Signed-off-by:

[PATCH] Cleanup snmp6_alloc_dev()

2007-10-17 Thread Pavel Emelyanov
This functions is never called with NULL or not setup argument, so the checks inside are redundant. Also, the return value is always -ENOMEM, so no need in additional variable for this. Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.