pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-sgsn/+/43340?usp=email )
Change subject: sndcp: Remove unused variable
......................................................................
sndcp: Remove unused variable
gcc 16.1.1 warns about it.
Change-Id: Ie2bd3d2935cd7e0ad023a163c9be9a05b83fbc5e
(cherry picked from commit b40a36793c28339432a2ec0a97ca77502e136321)
---
M src/sgsn/gprs_sndcp_xid.c
1 file changed, 1 insertion(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/40/43340/1
diff --git a/src/sgsn/gprs_sndcp_xid.c b/src/sgsn/gprs_sndcp_xid.c
index a19f645..344fda4 100644
--- a/src/sgsn/gprs_sndcp_xid.c
+++ b/src/sgsn/gprs_sndcp_xid.c
@@ -1352,7 +1352,6 @@
uint8_t tag;
uint16_t tag_len;
const uint8_t *val;
- int byte_counter = 0;
int rc;
int tlv_count = 0;
@@ -1403,8 +1402,7 @@
if (rc < 0) {
talloc_free(comp_fields);
return -EINVAL;
- } else
- byte_counter += rc;
+ }
}
/* Stop when no further TLV elements can be expected */
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43340?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: pespin/rel-1.13.1
Gerrit-Change-Id: Ie2bd3d2935cd7e0ad023a163c9be9a05b83fbc5e
Gerrit-Change-Number: 43340
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>