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>
This commit is contained in:
parent
5bd3a76f4b
commit
a2b60c75fa
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue