diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-21 03:14:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:08:22 -0500 |
commit | 891687649a5c44a1d53668b4f7728bf97c8db8d5 (patch) | |
tree | 72d3fd72888e0243bfe86b916eade4db3a3173f6 /net/sched | |
parent | 13893567358a8426d03ac3c613befc55431f23ce (diff) |
[NET_SCHED]: sch_ingress: remove useless printk
The printk about ingress qdisc registration error can't be triggered
under normal circumstances. Since register_qdisc only fails for two
identical registrations, the only way to trigger it is by loading the
sch_ingress modules multiple times under different names, in which
case we already return -EEXIST to userspace.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_ingress.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c index 4c7f7e712918..72525710b66f 100644 --- a/net/sched/sch_ingress.c +++ b/net/sched/sch_ingress.c | |||
@@ -221,14 +221,7 @@ static struct Qdisc_ops ingress_qdisc_ops __read_mostly = { | |||
221 | 221 | ||
222 | static int __init ingress_module_init(void) | 222 | static int __init ingress_module_init(void) |
223 | { | 223 | { |
224 | int ret = 0; | 224 | return register_qdisc(&ingress_qdisc_ops); |
225 | |||
226 | if ((ret = register_qdisc(&ingress_qdisc_ops)) < 0) { | ||
227 | printk("Unable to register Ingress qdisc\n"); | ||
228 | return ret; | ||
229 | } | ||
230 | |||
231 | return ret; | ||
232 | } | 225 | } |
233 | 226 | ||
234 | static void __exit ingress_module_exit(void) | 227 | static void __exit ingress_module_exit(void) |