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
This commit is contained in:
arehbein 2023-10-05 18:44:01 +02:00
parent bc496b1db0
commit 64d9b5487a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}