netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netfilter: don't output error message redundantly
@ 2014-07-23  6:19 Duan Jiong
  2014-07-24 11:49 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 6+ messages in thread
From: Duan Jiong @ 2014-07-23  6:19 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel


The function led_trigger_register() will only return -EEXIST when
error arises.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
 net/netfilter/xt_LED.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/netfilter/xt_LED.c b/net/netfilter/xt_LED.c
index 993de2b..b47a58c 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_warning("Trigger name is already in use.\n");
 		goto exit_alloc;
 	}
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-06 21:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-23  6:19 [PATCH] netfilter: don't output error message redundantly Duan Jiong
2014-07-24 11:49 ` Pablo Neira Ayuso
2014-07-25  1:06   ` [PATCH v2] " Duan Jiong
2014-07-25 13:00     ` Pablo Neira Ayuso
2015-03-06 21:27   ` [PATCH] " Patrick McHardy
2015-03-06 21:29     ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).