Fix Error: usrsocktest_basic_connect.c:112:7: error: variable 'ret' set but not used

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2024-05-22 09:40:40 +08:00 committed by archer
parent 72635a88ca
commit f228ee1e4f

View File

@ -114,13 +114,13 @@ static void teardown(void)
if (sd >= 0)
{
ret = close(sd);
assert(ret >= 0);
TEST_ASSERT_TRUE(ret >= 0);
}
if (started)
{
ret = usrsocktest_daemon_stop();
assert(ret == OK);
TEST_ASSERT_EQUAL(OK, ret);
}
}