[NEIGH]: Cleanup the neigh_sysctl_register
authorPavel Emelyanov <xemul@openvz.org>
Sat, 1 Dec 2007 13:06:34 +0000 (00:06 +1100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:24 +0000 (14:55 -0800)
commit3c607bbb472814f01b077af01ae326944ff6b8b3
tree0b6097274f25c8c0cfe180c8da640c68c9781af6
parent1597fbc0faf88c42edb3fe42e92e53b83c3f120e
[NEIGH]: Cleanup the neigh_sysctl_register

This mainly removes the err variable, as this call always
return the same error code (-ENOBUFS).

Besides, I moved the call to kmalloc() from the *t declaration
into the code (this is confusing when a variable is initialized
with the result of some call) and removed unneeded comment near
the error path.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c