mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
[NETFILTER]: ip_tables: kill useless wrapper
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
03bffc1341
commit
ac8e27fd89
1 changed files with 1 additions and 7 deletions
|
@ -1479,12 +1479,6 @@ struct compat_ipt_replace {
|
||||||
struct compat_ipt_entry entries[0];
|
struct compat_ipt_entry entries[0];
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline int compat_copy_match_to_user(struct ipt_entry_match *m,
|
|
||||||
void __user **dstptr, compat_uint_t *size)
|
|
||||||
{
|
|
||||||
return xt_compat_match_to_user(m, dstptr, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr,
|
compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr,
|
||||||
compat_uint_t *size, struct xt_counters *counters,
|
compat_uint_t *size, struct xt_counters *counters,
|
||||||
|
@ -1506,7 +1500,7 @@ compat_copy_entry_to_user(struct ipt_entry *e, void __user **dstptr,
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
*dstptr += sizeof(struct compat_ipt_entry);
|
*dstptr += sizeof(struct compat_ipt_entry);
|
||||||
ret = IPT_MATCH_ITERATE(e, compat_copy_match_to_user, dstptr, size);
|
ret = IPT_MATCH_ITERATE(e, xt_compat_match_to_user, dstptr, size);
|
||||||
target_offset = e->target_offset - (origsize - *size);
|
target_offset = e->target_offset - (origsize - *size);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue