pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/43098?usp=email )
Change subject: sndcp: Remove unused variable ......................................................................
sndcp: Remove unused variable
gcc 16.1.1 warns about it.
Change-Id: I110e3bca19f726382beff673bc91b494e0fba912 --- M src/sndcp/sndcp_xid.c 1 file changed, 1 insertion(+), 5 deletions(-)
Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve fixeria: Looks good to me, approved
diff --git a/src/sndcp/sndcp_xid.c b/src/sndcp/sndcp_xid.c index 05098cf..4442f18 100644 --- a/src/sndcp/sndcp_xid.c +++ b/src/sndcp/sndcp_xid.c @@ -1345,7 +1345,6 @@ uint8_t tag; uint16_t tag_len; const uint8_t *val; - int byte_counter = 0; int rc; int tlv_count = 0;
@@ -1390,11 +1389,8 @@ || (tag == SNDCP_XID_DATA_COMPRESSION)) { rc = decode_xid_block(comp_fields, tag, tag_len, val, lt, lt_len); - - if (rc < 0) { + if (rc < 0) return -EINVAL; - } - byte_counter += rc; }
/* Stop when no further TLV elements can be expected */