Skip to content

Commit

Permalink
net/sched: sch_cbq: change the type of cbq_set_lss to void
Browse files Browse the repository at this point in the history
Change the type of cbq_set_lss to void.

Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20220726030748.243505-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Zhengchao Shao authored and Jakub Kicinski committed Jul 28, 2022
1 parent 5ffcba4 commit a482d47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/sched/sch_cbq.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ cbq_reset(struct Qdisc *sch)
}


static int cbq_set_lss(struct cbq_class *cl, struct tc_cbq_lssopt *lss)
static void cbq_set_lss(struct cbq_class *cl, struct tc_cbq_lssopt *lss)
{
if (lss->change & TCF_CBQ_LSS_FLAGS) {
cl->share = (lss->flags & TCF_CBQ_LSS_ISOLATED) ? NULL : cl->tparent;
Expand All @@ -997,7 +997,6 @@ static int cbq_set_lss(struct cbq_class *cl, struct tc_cbq_lssopt *lss)
}
if (lss->change & TCF_CBQ_LSS_OFFTIME)
cl->offtime = lss->offtime;
return 0;
}

static void cbq_rmprio(struct cbq_sched_data *q, struct cbq_class *cl)
Expand Down

0 comments on commit a482d47

Please sign in to comment.