diff mbox

[net-next,7/7] fq_codel: fix set never used warning

Message ID 20170110181816.18991-8-sthemmin@microsoft.com
State Changes Requested, archived
Delegated to: David Miller
Headers show

Commit Message

Stephen Hemminger Jan. 10, 2017, 6:18 p.m. UTC
prev_backlog was set in fq_codel_dequeue but never used.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
 net/sched/sch_fq_codel.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/net/sched/sch_fq_codel.c b/net/sched/sch_fq_codel.c
index a5ea0e9b6be4..6709c62123ad 100644
--- a/net/sched/sch_fq_codel.c
+++ b/net/sched/sch_fq_codel.c
@@ -290,7 +290,6 @@  static struct sk_buff *fq_codel_dequeue(struct Qdisc *sch)
 	struct fq_codel_flow *flow;
 	struct list_head *head;
 	u32 prev_drop_count, prev_ecn_mark;
-	unsigned int prev_backlog;
 
 begin:
 	head = &q->new_flows;
@@ -309,7 +308,6 @@  static struct sk_buff *fq_codel_dequeue(struct Qdisc *sch)
 
 	prev_drop_count = q->cstats.drop_count;
 	prev_ecn_mark = q->cstats.ecn_mark;
-	prev_backlog = sch->qstats.backlog;
 
 	skb = codel_dequeue(sch, &sch->qstats.backlog, &q->cparams,
 			    &flow->cvars, &q->cstats, qdisc_pkt_len,