net: fix some compiler warning in net/core/neighbour.c
authorCong Wang <amwang@redhat.com>
Thu, 6 Dec 2012 02:04:04 +0000 (10:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2012 02:50:37 +0000 (21:50 -0500)
commitb93196dc5af7729ff7cc50d3d322ab1a364aa14f
tree5bcd0c82a03b17be2640bc2f8843992382c828eb
parentc2d3babfafbb9f6629cfb47139758e59a5eb0d80
net: fix some compiler warning in net/core/neighbour.c

net/core/neighbour.c:65:12: warning: 'zero' defined but not used [-Wunused-variable]
net/core/neighbour.c:66:12: warning: 'unres_qlen_max' defined but not used [-Wunused-variable]

These variables are only used when CONFIG_SYSCTL is defined,
so move them under #ifdef CONFIG_SYSCTL.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Shan Wei <davidshan@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c