pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/43097?usp=email )


Change subject: tests/osmo_io: Remove unused variable
......................................................................

tests/osmo_io: Remove unused variable

gcc 16.1.1 warns about it.

Change-Id: I0bdfe5ed6803042277ed8d21171b5f9c11495ca3
---
M tests/osmo_io/osmo_io_backpressure_test.c
1 file changed, 1 insertion(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/97/43097/1

diff --git a/tests/osmo_io/osmo_io_backpressure_test.c 
b/tests/osmo_io/osmo_io_backpressure_test.c
index 69bbb35..87259dc 100644
--- a/tests/osmo_io/osmo_io_backpressure_test.c
+++ b/tests/osmo_io/osmo_io_backpressure_test.c
@@ -106,7 +106,6 @@
        file_bytes_write_compl = 0;

        char drain_buffer[512];
-       int messages_queued = 0;

        for (int i = 0; i < 10; i++) {
                /* Add a message */
@@ -114,9 +113,7 @@
                memset(msgb_put(msg, 1024), 0xAA + (i % 16), 1024);

                rc = osmo_iofd_write_msgb(iofd, msg);
-               if (rc == 0)
-                       messages_queued++;
-               else
+               if (rc != 0)
                        msgb_free(msg);

                /* Process events with explicit timeout */

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

Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I0bdfe5ed6803042277ed8d21171b5f9c11495ca3
Gerrit-Change-Number: 43097
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to