diff options
author | Florian Westphal <fw@strlen.de> | 2016-04-01 14:17:33 +0200 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-07-12 08:48:36 -0400 |
commit | edd8ae364a37ee450969078cc4ac29d59392820e (patch) | |
tree | 68dc57b274057f3ecdaa1460a951427a908214d8 /net/netfilter/x_tables.c | |
parent | accd9c005ff0811550d3bfb1017e6c228c0b5de1 (diff) | |
download | linux-stable-edd8ae364a37ee450969078cc4ac29d59392820e.tar.gz linux-stable-edd8ae364a37ee450969078cc4ac29d59392820e.tar.bz2 linux-stable-edd8ae364a37ee450969078cc4ac29d59392820e.zip |
netfilter: x_tables: xt_compat_match_from_user doesn't need a retval
[ Upstream commit 0188346f21e6546498c2a0f84888797ad4063fc5 ]
Always returned 0.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'net/netfilter/x_tables.c')
-rw-r--r-- | net/netfilter/x_tables.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index fe72e632bff4..e6dbab352d18 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -528,8 +528,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; @@ -551,7 +551,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); |