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

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

Gerrit-MessageType: merged
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: Ie2bd3d2935cd7e0ad023a163c9be9a05b83fbc5e
Gerrit-Change-Number: 43099
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to