From: Ilpo Järvinen Date: Tue, 19 Aug 2008 05:30:01 +0000 (-0700) Subject: pkt_sched: remove bogus block (cleanup) X-Git-Tag: v2.6.27-rc4~39^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e5befbd9525d92bb074b70192eb2c69aae65fc60;p=linux-2.6-omap-h63xx.git pkt_sched: remove bogus block (cleanup) ...Last block local var got just deleted. Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller --- diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index d91a2338877..9372ec41ce8 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1088,14 +1088,13 @@ create_n_graft: } graft: - if (1) { - err = qdisc_graft(dev, p, skb, n, clid, q, NULL); - if (err) { - if (q) - qdisc_destroy(q); - return err; - } + err = qdisc_graft(dev, p, skb, n, clid, q, NULL); + if (err) { + if (q) + qdisc_destroy(q); + return err; } + return 0; }