diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2014-07-25 01:06:27 (GMT) |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-07-25 12:55:33 (GMT) |
commit | a2b60c75fa951f6e1ffa46c0f459d164d52699bf (patch) | |
tree | 5f0599d5397b55417c8d503b683985472765e03a /net/netfilter/xt_LED.c | |
parent | 5bd3a76f4ba37108101c2ae93172571a70505982 (diff) | |
download | linux-a2b60c75fa951f6e1ffa46c0f459d164d52699bf.tar.xz |
netfilter: xt_LED: don't output error message redundantly
The function led_trigger_register() will only return -EEXIST when
error arises.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_LED.c')
-rw-r--r-- | net/netfilter/xt_LED.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/netfilter/xt_LED.c b/net/netfilter/xt_LED.c index 993de2b..f14bcf2 100644 --- a/net/netfilter/xt_LED.c +++ b/net/netfilter/xt_LED.c @@ -133,9 +133,7 @@ static int led_tg_check(const struct xt_tgchk_param *par) err = led_trigger_register(&ledinternal->netfilter_led_trigger); if (err) { - pr_warning("led_trigger_register() failed\n"); - if (err == -EEXIST) - pr_warning("Trigger name is already in use.\n"); + pr_err("Trigger name is already in use.\n"); goto exit_alloc; } |