pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-pcu/+/33574 )

Change subject: gprs_ms: Constify variable in ms_is_reachable_for_dl_ass()
......................................................................

gprs_ms: Constify variable in ms_is_reachable_for_dl_ass()

Change-Id: If37907b2f75b61b3243b9d8499bb0cf5c02c28c1
---
M src/gprs_ms.c
1 file changed, 11 insertions(+), 2 deletions(-)

Approvals:
  fixeria: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/src/gprs_ms.c b/src/gprs_ms.c
index 6e6390b..5890d31 100644
--- a/src/gprs_ms.c
+++ b/src/gprs_ms.c
@@ -1093,7 +1093,7 @@
 /* Can we get to send a DL TBF ass to the MS? */
 static bool ms_is_reachable_for_dl_ass(const struct GprsMs *ms)
 {
-       struct gprs_rlcmac_ul_tbf *ul_tbf = ms_ul_tbf(ms);
+       const struct gprs_rlcmac_ul_tbf *ul_tbf = ms_ul_tbf(ms);

        /* This function assumes it is called when no DL TBF is present */
        OSMO_ASSERT(!ms_dl_tbf(ms));
@@ -1115,7 +1115,7 @@
                return true;
        if (ul_tbf_contention_resolution_done(ul_tbf) &&
            !tbf_ul_ack_waiting_cnf_final_ack(ul_tbf) &&
-           tbf_state(ul_tbf_as_tbf(ul_tbf)) != TBF_ST_RELEASING)
+           tbf_state(ul_tbf_as_tbf_const(ul_tbf)) != TBF_ST_RELEASING)
                return true;

        return false;

--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/33574
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: If37907b2f75b61b3243b9d8499bb0cf5c02c28c1
Gerrit-Change-Number: 33574
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to