Skip to content

Commit 38af117

Browse files
zhengchaoshaokuba-moo
authored andcommitted
net: sched: choke: remove unused variables in struct choke_sched_data
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>
1 parent cb45a8b commit 38af117

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/sched/sch_choke.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ struct choke_sched_data {
6060
u32 forced_drop; /* Forced drops, qavg > max_thresh */
6161
u32 forced_mark; /* Forced marks, qavg > max_thresh */
6262
u32 pdrop; /* Drops due to queue limits */
63-
u32 other; /* Drops due to drop() calls */
6463
u32 matched; /* Drops to flow match */
6564
} stats;
6665

@@ -464,7 +463,6 @@ static int choke_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
464463
.early = q->stats.prob_drop + q->stats.forced_drop,
465464
.marked = q->stats.prob_mark + q->stats.forced_mark,
466465
.pdrop = q->stats.pdrop,
467-
.other = q->stats.other,
468466
.matched = q->stats.matched,
469467
};
470468

0 commit comments

Comments
 (0)