Browse Source

tests: net: socket: getaddrinfo: Remove unused assignment

In check_dns_query(), the assignment `ret = -ENOMEM` was never used since
the function returns false immediately afterward.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
pull/92793/head
Gaetan Perrot 4 days ago committed by Daniel DeGrasse
parent
commit
369d5b170c
  1. 1
      tests/net/socket/getaddrinfo/src/main.c

1
tests/net/socket/getaddrinfo/src/main.c

@ -63,7 +63,6 @@ static bool check_dns_query(uint8_t *buf, int buf_len) @@ -63,7 +63,6 @@ static bool check_dns_query(uint8_t *buf, int buf_len)
*/
result = net_buf_alloc(&test_dns_msg_pool, K_FOREVER);
if (!result) {
ret = -ENOMEM;
return false;
}

Loading…
Cancel
Save