Review at  https://gerrit.osmocom.org/178

cosmetic: declare local var at top

Change-Id: Ie6f3394a18b6157f14469f676fff6849a503b694
---
M openbsc/src/libbsc/bsc_init.c
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/78/178/1

diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c
index 5c27862..1012425 100644
--- a/openbsc/src/libbsc/bsc_init.c
+++ b/openbsc/src/libbsc/bsc_init.c
@@ -309,6 +309,7 @@
        struct input_signal_data *isd = signal_data;
        struct gsm_bts_trx *trx = isd->trx;
        int ts_no, lchan_no;
+       int i;

        if (subsys != SS_L_INPUT)
                return -EINVAL;
@@ -327,8 +328,6 @@
                        generate_cell_chan_list(ca, trx->bts);

                        llist_for_each_entry(cur_trx, &trx->bts->trx_list, 
list) {
-                               int i;
-
                                for (i = 0; i < ARRAY_SIZE(cur_trx->ts); i++)
                                        generate_ma_for_ts(&cur_trx->ts[i]);
                        }

-- 
To view, visit https://gerrit.osmocom.org/178
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6f3394a18b6157f14469f676fff6849a503b694
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>

Reply via email to