Subject: [NET_SCHED 05/09]: sch_ingress: return proper error code in ingress_graft()

From: Patrick McHardy <[email-masked]>
Date: Sun, 20 Jan 2008 15:32:36 +0100 (MET)

commit e039da57d244f15d4b920de63a20ab516a76ed5b
Author: Patrick McHardy <[email-masked]>
Date:   Wed Jan 16 12:22:07 2008 +0100

    [NET_SCHED]: sch_ingress: return proper error code in ingress_graft()
    
    Signed-off-by: Patrick McHardy <[email-masked]>

diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c
index d803cd1..1bbc648 100644
--- a/net/sched/sch_ingress.c
+++ b/net/sched/sch_ingress.c
@@ -35,7 +35,7 @@ struct ingress_qdisc_data {
 static int ingress_graft(struct Qdisc *sch, unsigned long arg,
 			 struct Qdisc *new, struct Qdisc **old)
 {
-	return 1;
+	return -EOPNOTSUPP;
 }
 
 static struct Qdisc *ingress_leaf(struct Qdisc *sch, unsigned long arg)