laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/32106 )


Change subject: lc15/oc2g: remove unused variables
......................................................................

lc15/oc2g: remove unused variables

oml.c: In function ‘l1if_rsl_chan_mod’:
oml.c:1980:22: error: unused variable ‘i’ [-Werror=unused-variable]
 1980 |         unsigned int i;
      |                      ^
oml.c:1979:35: error: unused variable ‘s4l’ [-Werror=unused-variable]
 1979 |         const struct lchan_sapis *s4l = &sapis_for_lchan[lchan->type];
      |                                   ^~~

oml.c: In function ‘l1if_rsl_chan_mod’:
oml.c:1985:22: warning: unused variable ‘i’ [-Wunused-variable]
 1985 |         unsigned int i;
      |                      ^
oml.c:1984:35: warning: unused variable ‘s4l’ [-Wunused-variable]
 1984 |         const struct lchan_sapis *s4l = &sapis_for_lchan[lchan->type];
      |                                   ^~~

Change-Id: Ieb8882bbade7f6d6628c9c00150bcf54e3a9dc75
---
M src/osmo-bts-lc15/oml.c
M src/osmo-bts-oc2g/oml.c
2 files changed, 25 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/06/32106/1

diff --git a/src/osmo-bts-lc15/oml.c b/src/osmo-bts-lc15/oml.c
index 221e075..2619c75 100644
--- a/src/osmo-bts-lc15/oml.c
+++ b/src/osmo-bts-lc15/oml.c
@@ -1976,9 +1976,6 @@
  */
 int l1if_rsl_chan_mod(struct gsm_lchan *lchan)
 {
-       const struct lchan_sapis *s4l = &sapis_for_lchan[lchan->type];
-       unsigned int i;
-
        if (lchan->ho.active == HANDOVER_NONE)
                return -1;

diff --git a/src/osmo-bts-oc2g/oml.c b/src/osmo-bts-oc2g/oml.c
index 008e431..b524421 100644
--- a/src/osmo-bts-oc2g/oml.c
+++ b/src/osmo-bts-oc2g/oml.c
@@ -1981,9 +1981,6 @@
  */
 int l1if_rsl_chan_mod(struct gsm_lchan *lchan)
 {
-       const struct lchan_sapis *s4l = &sapis_for_lchan[lchan->type];
-       unsigned int i;
-
        if (lchan->ho.active == HANDOVER_NONE)
                return -1;


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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ieb8882bbade7f6d6628c9c00150bcf54e3a9dc75
Gerrit-Change-Number: 32106
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to