Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a55e1c5c authored by Andrea Parri's avatar Andrea Parri Committed by David S. Miller
Browse files

pkt_sched: sch_qfq: remove redundant -if- control statement



The control !hlist_unhashed() in qfq_destroy_agg() is unnecessary
because already performed in hlist_del_init(), so remove it.

Signed-off-by: default avatarAndrea Parri <parri.andrea@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 68946159
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -339,7 +339,6 @@ static struct qfq_aggregate *qfq_choose_next_agg(struct qfq_sched *);

static void qfq_destroy_agg(struct qfq_sched *q, struct qfq_aggregate *agg)
{
	if (!hlist_unhashed(&agg->nonfull_next))
	hlist_del_init(&agg->nonfull_next);
	q->wsum -= agg->class_weight;
	if (q->wsum != 0)