aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@espeweb.net>2021-02-01 16:35:04 +0100
committerPau Espin Pedrol <pespin@espeweb.net>2021-02-01 16:37:46 +0100
commitb71aab5646187ed566ddf6291a391881f16a24f0 (patch)
tree14d073883c9afd866478985eacfd5a74921def23
parent4668dc6f07a7ee8517e1e77255199a44976604cb (diff)
tbf: Reuse stored result in variable in check_polling()
-rw-r--r--src/tbf.cpp2
1 files changed, 1 insertions, 1 deletions
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);