Commit 369d5b17 authored by Gaetan Perrot's avatar Gaetan Perrot Committed by Daniel DeGrasse
Browse files

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: default avatarGaetan Perrot <gaetan.perrot@spacecubics.com>
parent a16c5047
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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);
	result = net_buf_alloc(&test_dns_msg_pool, K_FOREVER);
	if (!result) {
	if (!result) {
		ret = -ENOMEM;
		return false;
		return false;
	}
	}