From: Duan Jiong Date: Fri, 25 Jul 2014 01:06:27 +0000 (+0800) Subject: netfilter: xt_LED: don't output error message redundantly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2b60c75fa951f6e1ffa46c0f459d164d52699bf;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Pablo Neira Ayuso --- 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; }