Skip to content

Commit

Permalink
pkt_sched: remove bogus block (cleanup)
Browse files Browse the repository at this point in the history
...Last block local var got just deleted.

Signed-off-by: Ilpo Järvinen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ij1 authored and davem330 committed Aug 19, 2008
1 parent 9f59365 commit e5befbd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,14 +1088,13 @@ static int tc_modify_qdisc(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
}

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;
}

Expand Down

0 comments on commit e5befbd

Please sign in to comment.