aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2024-06-13 01:35:53 +0800
committerZhao Zhili <zhilizhao@tencent.com>2024-06-18 15:23:46 +0800
commit74b4e550cbf70b56db601317cc4b770274129282 (patch)
treee7d69d41a5a77446447bf9c2d04c6c3515dda07e /tests
parentc28e5b597ecc34188427347ad8d773bf9a0176cd (diff)
downloadffmpeg-74b4e550cbf70b56db601317cc4b770274129282.tar.gz
tests/checkasm: Remove check on linux perf fd in uninit
The check should be >= 0, not > 0. The check itself is redundant since uninit only being called after init is success. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/checkasm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index 56232ab1e0..b88b128e4c 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -823,8 +823,7 @@ static int bench_init(void)
static void bench_uninit(void)
{
#if CONFIG_LINUX_PERF
- if (state.sysfd > 0)
- close(state.sysfd);
+ close(state.sysfd);
#endif
}