summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-08-18 22:30:01 -0700
committerDavid S. Miller <davem@davemloft.net>2008-08-18 22:30:01 -0700
commite5befbd9525d92bb074b70192eb2c69aae65fc60 (patch)
treead9a3ce178096938f3ccb8c4445d71ace63f3e61 /net/sched
parent9f593653742d1dd816c4e94c6e5154a57ccba6d1 (diff)
downloadlinux-e5befbd9525d92bb074b70192eb2c69aae65fc60.tar.bz2
pkt_sched: remove bogus block (cleanup)
...Last block local var got just deleted. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_api.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index d91a2338877c..9372ec41ce84 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;
}