diff options
author | Florian Westphal <fw@strlen.de> | 2018-02-09 15:51:59 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-02-14 21:05:33 +0100 |
commit | 0cc9501f94592125b2012452c57054b8215bcf33 (patch) | |
tree | a7e5cbae8675ddad10c41535f61315647b15fcb2 /net/netfilter/xt_CHECKSUM.c | |
parent | db93a3632b0f8773a3899e04a3a3e0aa7a26eb46 (diff) |
netfilter: x_tables: remove pr_info where possible
remove several pr_info messages that cannot be triggered with iptables,
the check is only to ensure input is sane.
iptables(8) already prints error messages in these cases.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_CHECKSUM.c')
-rw-r--r-- | net/netfilter/xt_CHECKSUM.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/netfilter/xt_CHECKSUM.c b/net/netfilter/xt_CHECKSUM.c index 0f642ef8cd26..ea3c5701fb0f 100644 --- a/net/netfilter/xt_CHECKSUM.c +++ b/net/netfilter/xt_CHECKSUM.c @@ -39,10 +39,9 @@ static int checksum_tg_check(const struct xt_tgchk_param *par) pr_info("unsupported CHECKSUM operation %x\n", einfo->operation); return -EINVAL; } - if (!einfo->operation) { - pr_info("no CHECKSUM operation enabled\n"); + if (!einfo->operation) return -EINVAL; - } + return 0; } |