[PKT_SCHED] sch_htb: use rb_first() cleanup

Use rb_first() to get first entry in rb tree.

Signed-off-by: Akinbou Mita <akinobu.mita@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Akinbou Mita and committed by David S. Miller 30bdbe39 b974179a

+2 -3
+2 -3
net/sched/sch_htb.c
··· 786 786 for (i = 0; i < 500; i++) { 787 787 struct htb_class *cl; 788 788 long diff; 789 - struct rb_node *p = q->wait_pq[level].rb_node; 789 + struct rb_node *p = rb_first(&q->wait_pq[level]); 790 + 790 791 if (!p) 791 792 return 0; 792 - while (p->rb_left) 793 - p = p->rb_left; 794 793 795 794 cl = rb_entry(p, struct htb_class, pq_node); 796 795 if (time_after(cl->pq_key, q->jiffies)) {