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:
parent
72635a88ca
commit
f228ee1e4f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user