pespin has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/98/43098/1

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 */

--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/43098?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I110e3bca19f726382beff673bc91b494e0fba912
Gerrit-Change-Number: 43098
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to