pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/43099?usp=email )
Change subject: sndcp: Remove unused variable ......................................................................
sndcp: Remove unused variable
gcc 16.1.1 warns about it.
Change-Id: Ie2bd3d2935cd7e0ad023a163c9be9a05b83fbc5e --- M src/sgsn/gprs_sndcp_xid.c 1 file changed, 1 insertion(+), 3 deletions(-)
Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve
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 */