projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb45a8b
)
net: sched: choke: remove unused variables in struct choke_sched_data
author
Zhengchao Shao
<shaozhengchao@huawei.com>
Tue, 30 Aug 2022 09:22:54 +0000
(17:22 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 1 Sep 2022 02:39:53 +0000
(19:39 -0700)
The variable "other" in the struct choke_sched_data is not used. Remove it.
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_choke.c
patch
|
blob
|
history
diff --git
a/net/sched/sch_choke.c
b/net/sched/sch_choke.c
index 25d2daaa81227478f3f91c57c26ea8185c686462..3ac3e5c80b6ffb035181d3270b05d7ce32fa2735 100644
(file)
--- a/
net/sched/sch_choke.c
+++ b/
net/sched/sch_choke.c
@@
-60,7
+60,6
@@
struct choke_sched_data {
u32 forced_drop; /* Forced drops, qavg > max_thresh */
u32 forced_mark; /* Forced marks, qavg > max_thresh */
u32 pdrop; /* Drops due to queue limits */
- u32 other; /* Drops due to drop() calls */
u32 matched; /* Drops to flow match */
} stats;
@@
-464,7
+463,6
@@
static int choke_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
.early = q->stats.prob_drop + q->stats.forced_drop,
.marked = q->stats.prob_mark + q->stats.forced_mark,
.pdrop = q->stats.pdrop,
- .other = q->stats.other,
.matched = q->stats.matched,
};