summaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-01 14:17:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-04-14 00:30:40 +0200
commit0188346f21e6546498c2a0f84888797ad4063fc5 (patch)
treefbcc5e2660805467c822e3a2964de92661dee91c /net/netfilter
parent8dddd32756f6fe8e4e82a63361119b7e2384e02f (diff)
downloadlinux-0188346f21e6546498c2a0f84888797ad4063fc5.tar.gz
linux-0188346f21e6546498c2a0f84888797ad4063fc5.tar.bz2
linux-0188346f21e6546498c2a0f84888797ad4063fc5.zip
netfilter: x_tables: xt_compat_match_from_user doesn't need a retval
Always returned 0. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/x_tables.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
index f9aa9715c32e..7e7173b68344 100644
--- a/net/netfilter/x_tables.c
+++ b/net/netfilter/x_tables.c
@@ -526,8 +526,8 @@ int xt_compat_match_offset(const struct xt_match *match)
}
EXPORT_SYMBOL_GPL(xt_compat_match_offset);
-int xt_compat_match_from_user(struct xt_entry_match *m, void **dstptr,
- unsigned int *size)
+void xt_compat_match_from_user(struct xt_entry_match *m, void **dstptr,
+ unsigned int *size)
{
const struct xt_match *match = m->u.kernel.match;
struct compat_xt_entry_match *cm = (struct compat_xt_entry_match *)m;
@@ -549,7 +549,6 @@ int xt_compat_match_from_user(struct xt_entry_match *m, void **dstptr,
*size += off;
*dstptr += msize;
- return 0;
}
EXPORT_SYMBOL_GPL(xt_compat_match_from_user);