diff options
author | Florian Westphal <fw@strlen.de> | 2016-04-01 14:17:33 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-04-14 00:30:40 +0200 |
commit | 0188346f21e6546498c2a0f84888797ad4063fc5 (patch) | |
tree | fbcc5e2660805467c822e3a2964de92661dee91c /net/netfilter/x_tables.c | |
parent | 8dddd32756f6fe8e4e82a63361119b7e2384e02f (diff) | |
download | op-kernel-dev-0188346f21e6546498c2a0f84888797ad4063fc5.zip op-kernel-dev-0188346f21e6546498c2a0f84888797ad4063fc5.tar.gz |
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/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 f9aa971..7e7173b 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); |