summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter
diff options
context:
space:
mode:
authorFlorian Westphal2016-04-01 14:17:33 +0200
committerPablo Neira Ayuso2016-04-14 00:30:40 +0200
commit0188346f21e6546498c2a0f84888797ad4063fc5 (patch)
treefbcc5e2660805467c822e3a2964de92661dee91c /include/linux/netfilter
parentnetfilter: arp_tables: simplify translate_compat_table args (diff)
downloadkernel-qcow2-linux-0188346f21e6546498c2a0f84888797ad4063fc5.tar.gz
kernel-qcow2-linux-0188346f21e6546498c2a0f84888797ad4063fc5.tar.xz
kernel-qcow2-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 'include/linux/netfilter')
-rw-r--r--include/linux/netfilter/x_tables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index 30cfb1e943fb..e2da9b90f1b8 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -484,7 +484,7 @@ void xt_compat_init_offsets(u_int8_t af, unsigned int number);
int xt_compat_calc_jump(u_int8_t af, unsigned int offset);
int xt_compat_match_offset(const struct xt_match *match);
-int xt_compat_match_from_user(struct xt_entry_match *m, void **dstptr,
+void xt_compat_match_from_user(struct xt_entry_match *m, void **dstptr,
unsigned int *size);
int xt_compat_match_to_user(const struct xt_entry_match *m,
void __user **dstptr, unsigned int *size);