pespin has uploaded this change for review. ( 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(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/88/41788/1 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: newchange Gerrit-Project: osmo-bts Gerrit-Branch: master Gerrit-Change-Id: Ia5ada61d74f5b17c4d1479123462104650a6ed0f Gerrit-Change-Number: 41788 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de>