pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/41788?usp=email )

Change subject: ta_control: Move variable declaration to the top of the function
......................................................................

ta_control: Move variable declaration to the top of the function

Change-Id: Ia5ada61d74f5b17c4d1479123462104650a6ed0f
---
M src/common/ta_control.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  dexter: Looks good to me, approved




diff --git a/src/common/ta_control.c b/src/common/ta_control.c
index c3e4d67..10b04a9 100644
--- a/src/common/ta_control.c
+++ b/src/common/ta_control.c
@@ -65,13 +65,13 @@
  */
 void lchan_ms_ta_ctrl(struct gsm_lchan *lchan, uint8_t ms_tx_ta, int16_t 
toa256)
 {
-       int16_t new_ta;
+       int16_t new_ta, delta_ta;

        /* Shall we skip current block based on configured interval? */
        if (ctrl_interval_skip_block(lchan))
                return;

-       int16_t delta_ta = toa256/256;
+       delta_ta = toa256/256;
        if (toa256 >= 0) {
                if ((toa256 - (256 * delta_ta)) > TOA256_THRESH)
                        delta_ta++;

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/41788?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ia5ada61d74f5b17c4d1479123462104650a6ed0f
Gerrit-Change-Number: 41788
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to