Skip to content

Commit 369d5b1

Browse files
moonlight83340danieldegrasse
authored andcommitted
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>
1 parent a16c504 commit 369d5b1

File tree

1 file changed

+0
-1
lines changed
  • tests/net/socket/getaddrinfo/src

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ static bool check_dns_query(uint8_t *buf, int buf_len)
6363
*/
6464
result = net_buf_alloc(&test_dns_msg_pool, K_FOREVER);
6565
if (!result) {
66-
ret = -ENOMEM;
6766
return false;
6867
}
6968

0 commit comments

Comments
 (0)