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>
release/7.1
Zhao Zhili 8 months ago
parent c28e5b597e
commit 74b4e550cb
  1. 3
      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
}

Loading…
Cancel
Save