summaryrefslogtreecommitdiff
path: root/cesar/mac/sar
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/sar')
-rw-r--r--cesar/mac/sar/src/expiration.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cesar/mac/sar/src/expiration.c b/cesar/mac/sar/src/expiration.c
index c01a66f629..597375093b 100644
--- a/cesar/mac/sar/src/expiration.c
+++ b/cesar/mac/sar/src/expiration.c
@@ -56,12 +56,14 @@ void
sar_expiration_mfs_purge_tx (sar_t *ctx, mfs_tx_t *mfs, u32 phy_curr_ntb)
{
bool mfs_empty;
- u32 old_first_ssn = SAR_SSN_INVALID;
uint expired_nb;
dbg_assert (ctx);
dbg_assert (mfs);
- if (CONFIG_TRACE && mfs->head)
+#if CONFIG_TRACE
+ u32 old_first_ssn = SAR_SSN_INVALID;
+ if (mfs->head)
old_first_ssn = mfs->head->header.ssn;
+#endif
/* Call the PBprocessing to expire the PBs (only on MFS tx). */
mfs_empty = pbproc_mfs_expire (ctx->pbproc_ctx, (mfs_tx_t *) mfs,
phy_curr_ntb, &expired_nb);