pespin submitted this change.
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(-)
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 change 43098. To unsubscribe, or for help writing mail filters, visit settings.