]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitcf09554ee59425386f73f9af1b34f844e741df65
tree0b6097274f25c8c0cfe180c8da640c68c9781af6
parent204631c11480720411973cd76f86c887d538c00a
[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