openbsc[master]: cosmetic: declare local var at top

Submitted by gerrit-no-reply@lists.osmocom.org on June 2, 2016, 11:50 a.m.

Details

Message ID gerrit.1464868259650.Ie6f3394a18b6157f14469f676fff6849a503b694@gerrit.osmocom.org
State New
Headers show

Commit Message

gerrit-no-reply@lists.osmocom.org June 2, 2016, 11:50 a.m.
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

Patch hide | download patch | download mbox

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]);
 			}