This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.orgHello Max, Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/1564
to look at the new patch set (#2).
undup: subchan_demux.c: use libosmocore's llist_len()
Depends on libosmocore Change-Id Ic49adc7a346f5722bf624d7d3b4a735e4220ae15
Change-Id: I47f1831f1835dc07925dabbc115677087e48fa1b
---
M src/subchan_demux.c
1 file changed, 1 insertion(+), 12 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/64/1564/2
diff --git a/src/subchan_demux.c b/src/subchan_demux.c
index 7b3cb07..96de5fb 100644
--- a/src/subchan_demux.c
+++ b/src/subchan_demux.c
@@ -289,17 +289,6 @@
return i;
}
-static unsigned int _llist_len(struct llist_head *head)
-{
- struct llist_head *entry;
- unsigned int i = 0;
-
- llist_for_each(entry, head)
- i++;
-
- return i;
-}
-
/* evict the 'num_evict' number of oldest entries in the queue */
static void tx_queue_evict(struct mux_subch *sch, int num_evict)
{
@@ -327,7 +316,7 @@
int len)
{
struct mux_subch *sch = &mx->subch[s_nr];
- unsigned int list_len = _llist_len(&sch->tx_queue);
+ unsigned int list_len = llist_len(&sch->tx_queue);
struct subch_txq_entry *tqe = talloc_zero_size(tall_tqe_ctx,
sizeof(*tqe) + len);
if (!tqe)
--
To view, visit https://gerrit.osmocom.org/1564
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I47f1831f1835dc07925dabbc115677087e48fa1b
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>