pdch: Use llist_first_entry() API

Change-Id: I96e7188ecf7d2cfc54598975f8d538e7aa94401a
changes/23/24223/1
Pau Espin 2 years ago
parent 48517620b9
commit c48d27b57b
  1. 2
      src/pdch.cpp

@ -179,7 +179,7 @@ struct gprs_rlcmac_paging *gprs_rlcmac_pdch::dequeue_paging()
if (llist_empty(&paging_list))
return NULL;
pag = llist_entry(paging_list.next, struct gprs_rlcmac_paging, list);
pag = llist_first_entry(&paging_list, struct gprs_rlcmac_paging, list);
llist_del(&pag->list);
return pag;

Loading…
Cancel
Save