summaryrefslogtreecommitdiff
path: root/net/netfilter/xt_dscp.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-02-09 15:51:59 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-02-14 21:05:33 +0100
commit0cc9501f94592125b2012452c57054b8215bcf33 (patch)
treea7e5cbae8675ddad10c41535f61315647b15fcb2 /net/netfilter/xt_dscp.c
parentdb93a3632b0f8773a3899e04a3a3e0aa7a26eb46 (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_dscp.c')
-rw-r--r--net/netfilter/xt_dscp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/netfilter/xt_dscp.c b/net/netfilter/xt_dscp.c
index 236ac8008909..a4c2b862f820 100644
--- a/net/netfilter/xt_dscp.c
+++ b/net/netfilter/xt_dscp.c
@@ -46,10 +46,8 @@ static int dscp_mt_check(const struct xt_mtchk_param *par)
{
const struct xt_dscp_info *info = par->matchinfo;
- if (info->dscp > XT_DSCP_MAX) {
- pr_info("dscp %x out of range\n", info->dscp);
+ if (info->dscp > XT_DSCP_MAX)
return -EDOM;
- }
return 0;
}