summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_api.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-08-19 07:30:01 +0200
committerDavid S. Miller <davem@davemloft.net>2008-08-19 07:30:01 +0200
commite5befbd9525d92bb074b70192eb2c69aae65fc60 (patch)
treead9a3ce178096938f3ccb8c4445d71ace63f3e61 /net/sched/sch_api.c
parentnf_nat: use secure_ipv4_port_ephemeral() for NAT port randomization (diff)
downloadlinux-e5befbd9525d92bb074b70192eb2c69aae65fc60.tar.xz
linux-e5befbd9525d92bb074b70192eb2c69aae65fc60.zip
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 '')
-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;
}