aboutsummaryrefslogtreecommitdiffstats
path: root/tests/stream
diff options
context:
space:
mode:
authorarehbein <arehbein@sysmocom.de>2023-10-05 18:44:01 +0200
committerarehbein <arehbein@sysmocom.de>2023-10-05 18:44:19 +0200
commit64d9b5487ae0953f29618b0ab313b7456eb1324c (patch)
tree429f0f6eaa61281b79574c16650c4a3ca14755cd /tests/stream
parentbc496b1db06a3833ab5855a0bfd61a01d72ea227 (diff)
stream (test): Fix Coverity CID 323456
Fix Coverity CID 323456 ("Control flow issues (NO_EFFECT)") by removing 'greater than 0'-check on unsigned integer-type variable. Change-Id: I2efb28feae4d4fa7516702f01026af09aa3777ac
Diffstat (limited to 'tests/stream')
-rw-r--r--tests/stream/stream_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stream/stream_test.c b/tests/stream/stream_test.c
index e945a1e..960d8fa 100644
--- a/tests/stream/stream_test.c
+++ b/tests/stream/stream_test.c
@@ -678,7 +678,7 @@ int test_segm_ipa_stream_cli_srv_read_cb(struct osmo_stream_srv *conn, struct ms
}
LOGSRV(conn, "Received message from stream (total len including stripped headers = %lu)\n",
osmo_ntohs(h->len) + sizeof(*h));
- if (ipa_msg_type < 0 || 5 < ipa_msg_type) {
+ if (5 < ipa_msg_type) {
fprintf(stderr, "Received unexpected IPAC message type %"PRIu8"\n", ipa_msg_type);
return -ENOMSG;
}