From b71aab5646187ed566ddf6291a391881f16a24f0 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 1 Feb 2021 16:35:04 +0100 Subject: [PATCH] tbf: Reuse stored result in variable in check_polling() Change-Id: Ie6fbe3699bcb4f63f7b617243c769e60881d8aac --- src/tbf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbf.cpp b/src/tbf.cpp index 54ae4fac..74c790ca 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -558,7 +558,7 @@ int gprs_rlcmac_tbf::check_polling(uint32_t fn, uint8_t ts, LOGPTBF(this, LOGL_DEBUG, "Polling is already scheduled\n"); return -EBUSY; } - if (bts_sba(bts)->find(trx->trx_no, ts, next_fn(fn, 13))) { + if (bts_sba(bts)->find(trx->trx_no, ts, new_poll_fn)) { LOGPTBF(this, LOGL_DEBUG, "Polling is already scheduled " "for single block allocation at FN %d TS %d ...\n", new_poll_fn, ts);