tbf: Reuse stored result in variable in check_polling()
Change-Id: Ie6fbe3699bcb4f63f7b617243c769e60881d8aac
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 54ae4fa..74c790c 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -558,7 +558,7 @@
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);