]> git.baikalelectronics.ru Git - kernel.git/commit
[NETLABEL]: Don't produce unused variables when IPv6 is off.
authorPavel Emelyanov <xemul@openvz.org>
Wed, 13 Feb 2008 06:37:19 +0000 (22:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2008 06:37:19 +0000 (22:37 -0800)
commitaa4942c03444a62c2e859f854886747ef0d30022
treeaa613aac941bdffe6b328d23aac3d3d97a46ec1e
parent2d95ccbc51dc90ac95731211c7b5425f7cf829f5
[NETLABEL]: Don't produce unused variables when IPv6 is off.

Some code declares variables on the stack, but uses them
under #ifdef CONFIG_IPV6, so thay become unused when ipv6
is off. Fortunately, they are used in a switch's case
branches, so the fix is rather simple.

Is it OK from coding style POV to add braces inside "cases",
or should I better avoid such style and rework the patch?

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_unlabeled.c