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>
This commit is contained in:
parent
c28e5b597e
commit
74b4e550cb
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue