projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bd3a76
)
netfilter: xt_LED: don't output error message redundantly
author
Duan Jiong
<duanj.fnst@cn.fujitsu.com>
Fri, 25 Jul 2014 01:06:27 +0000
(09:06 +0800)
committer
Pablo 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
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/xt_LED.c
b/net/netfilter/xt_LED.c
index 993de2ba89d33bb3fa532ded0952bfb83de63836..f14bcf23dc9f9655a650ea744a3066a290b8fa79 100644
(file)
--- 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;
}