Commit a482d47d authored by Zhengchao Shao's avatar Zhengchao Shao Committed by Jakub Kicinski

net/sched: sch_cbq: change the type of cbq_set_lss to void

Change the type of cbq_set_lss to void.
Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20220726030748.243505-1-shaozhengchao@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5ffcba41
...@@ -979,7 +979,7 @@ cbq_reset(struct Qdisc *sch) ...@@ -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) { if (lss->change & TCF_CBQ_LSS_FLAGS) {
cl->share = (lss->flags & TCF_CBQ_LSS_ISOLATED) ? NULL : cl->tparent; cl->share = (lss->flags & TCF_CBQ_LSS_ISOLATED) ? NULL : cl->tparent;
...@@ -997,7 +997,6 @@ static int cbq_set_lss(struct cbq_class *cl, struct tc_cbq_lssopt *lss) ...@@ -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) if (lss->change & TCF_CBQ_LSS_OFFTIME)
cl->offtime = lss->offtime; cl->offtime = lss->offtime;
return 0;
} }
static void cbq_rmprio(struct cbq_sched_data *q, struct cbq_class *cl) static void cbq_rmprio(struct cbq_sched_data *q, struct cbq_class *cl)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment