We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7edd04d commit 68858beCopy full SHA for 68858be
net/sched/sch_multiq.c
@@ -254,7 +254,7 @@ static int multiq_tune(struct Qdisc *sch, struct nlattr *opt)
254
static int multiq_init(struct Qdisc *sch, struct nlattr *opt)
255
{
256
struct multiq_sched_data *q = qdisc_priv(sch);
257
- int i, err;
+ int i;
258
259
q->queues = NULL;
260
@@ -269,12 +269,7 @@ static int multiq_init(struct Qdisc *sch, struct nlattr *opt)
269
for (i = 0; i < q->max_bands; i++)
270
q->queues[i] = &noop_qdisc;
271
272
- err = multiq_tune(sch, opt);
273
-
274
- if (err)
275
- kfree(q->queues);
276
277
- return err;
+ return multiq_tune(sch, opt);
278
}
279
280
static int multiq_dump(struct Qdisc *sch, struct sk_buff *skb)
0 commit comments