diff options
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | 2014-07-25 09:06:27 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-07-25 14:55:33 +0200 |
commit | a2b60c75fa951f6e1ffa46c0f459d164d52699bf (patch) | |
tree | 5f0599d5397b55417c8d503b683985472765e03a /net/netfilter | |
parent | 5bd3a76f4ba37108101c2ae93172571a70505982 (diff) | |
download | linux-a2b60c75fa951f6e1ffa46c0f459d164d52699bf.tar.gz linux-a2b60c75fa951f6e1ffa46c0f459d164d52699bf.tar.bz2 linux-a2b60c75fa951f6e1ffa46c0f459d164d52699bf.zip |
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')
-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 993de2ba89d3..f14bcf23dc9f 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; } |