[IPV6]: Cleanup snmp6_alloc_dev()
authorPavel Emelyanov <xemul@openvz.org>
Thu, 18 Oct 2007 04:25:32 +0000 (21:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2007 04:25:32 +0000 (21:25 -0700)
commitaaf70ec7fde2321281b2a49c7c9f881c90d0d208
tree8d60e06a4b8eb498f35c0c3a3446fc00cdf8f61b
parent16910b9829797cda4032fbc84e5292ac7b4474f7
[IPV6]: Cleanup snmp6_alloc_dev()

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 <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c