netfilter: xt_LED: don't output error message redundantly
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Fri, 25 Jul 2014 01:06:27 +0000 (09:06 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 25 Jul 2014 12:55:33 +0000 (14:55 +0200)
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>
net/netfilter/xt_LED.c

index 993de2ba89d33bb3fa532ded0952bfb83de63836..f14bcf23dc9f9655a650ea744a3066a290b8fa79 100644 (file)
@@ -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;
        }