tbf: Reuse stored result in variable in check_polling()

Change-Id: Ie6fbe3699bcb4f63f7b617243c769e60881d8aac
This commit is contained in:
Pau Espin Pedrol 2021-02-01 16:35:04 +01:00
parent 4668dc6f07
commit b71aab5646
1 changed files with 1 additions and 1 deletions

View File

@ -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);