]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: Fix several warnings in compat_mtw_from_user().
authorDavid Miller <davem@davemloft.net>
Thu, 19 May 2011 22:14:39 +0000 (18:14 -0400)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 26 May 2011 17:09:07 +0000 (19:09 +0200)
commit37aeb520072d91efe1fc8369649fa3d0e03bc1e9
treec1d64596ae85c77580fe99b7c4cae3d41ca4fbf5
parentc4755331207320f46b52ca20987880b56d8f26d6
netfilter: Fix several warnings in compat_mtw_from_user().

Kill set but not used 'entry_offset'.

Add a default case to the switch statement so the compiler
can see that we always initialize off and size_kern before
using them.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/netfilter/ebtables.c