Re: [PATCH 2/3][NETLABEL]: Don't produce unused variables when IPv6 is off.

2008-02-12 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Thu, 07 Feb 2008 20:24:15 +0300 > 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. >

[PATCH 2/3][NETLABEL]: Don't produce unused variables when IPv6 is off.

2008-02-07 Thread Pavel Emelyanov
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