summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_red.c
diff options
context:
space:
mode:
authorZhengchao Shao <shaozhengchao@huawei.com>2022-08-30 11:22:55 +0200
committerJakub Kicinski <kuba@kernel.org>2022-09-01 04:39:53 +0200
commit4516c873e3b55856012ddd6db9d4366ce3c60c5d (patch)
tree400dfe32a8cec1361177ea79e6630c18e6787efd /net/sched/sch_red.c
parentnet: sched: choke: remove unused variables in struct choke_sched_data (diff)
downloadlinux-4516c873e3b55856012ddd6db9d4366ce3c60c5d.tar.xz
linux-4516c873e3b55856012ddd6db9d4366ce3c60c5d.zip
net: sched: gred/red: remove unused variables in struct red_stats
The variable "other" in the struct red_stats is not used. Remove it. Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/sch_red.c')
-rw-r--r--net/sched/sch_red.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/sch_red.c b/net/sched/sch_red.c
index f1e013e3f04a..f7ac40c0335e 100644
--- a/net/sched/sch_red.c
+++ b/net/sched/sch_red.c
@@ -461,7 +461,6 @@ static int red_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
}
st.early = q->stats.prob_drop + q->stats.forced_drop;
st.pdrop = q->stats.pdrop;
- st.other = q->stats.other;
st.marked = q->stats.prob_mark + q->stats.forced_mark;
return gnet_stats_copy_app(d, &st, sizeof(st));