bridge: Avoid 'statement with no effect' compiler warnings
authorLee Jones <lee.jones@linaro.org>
Sat, 3 Nov 2012 22:02:30 +0000 (23:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Nov 2012 05:59:29 +0000 (01:59 -0400)
commit0cb2bbbea0857c5c76db4cae85343553a882c0de
tree8dde01088d642a45a621453a34fdc2165e369678
parentf7c3f96a41f16865e6422bfb919312a716b16552
bridge: Avoid 'statement with no effect' compiler warnings

Instead of issuing (0) statements when !CONFIG_SYSFS which will cause
'warning: ', we'll use inline statements instead. This will effectively
do the same thing, but suppress any unnecessary warnings.

Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: bridge@lists.linux-foundation.org
Cc: netdev@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_private.h