pcu_sock: cosmetic: make *nsvc a scoped and const variable

Change-Id: I707bb75f15ccaee5c67fa4a7e87dc70c9b982973
This commit is contained in:
Vadim Yanitskiy 2020-10-08 22:23:36 +07:00
parent 403a37ec34
commit a2690a8921
1 changed files with 1 additions and 2 deletions

View File

@ -241,7 +241,6 @@ int pcu_tx_info_ind(void)
struct gsm_pcu_if_info_ind *info_ind;
struct gsm_bts *bts;
struct gprs_rlc_cfg *rlcc;
struct gsm_bts_gprs_nsvc *nsvc;
struct gsm_bts_trx *trx;
int i;
@ -328,7 +327,7 @@ int pcu_tx_info_ind(void)
/* NSVC */
for (i = 0; i < ARRAY_SIZE(bts->gprs.nsvc); i++) {
nsvc = &bts->gprs.nsvc[i];
const struct gsm_bts_gprs_nsvc *nsvc = &bts->gprs.nsvc[i];
info_ind->nsvci[i] = nsvc->nsvci;
info_ind->local_port[i] = nsvc->local.u.sin.sin_port;
info_ind->remote_port[i] = nsvc->remote.u.sin.sin_port;