diff mbox series

[FFmpeg-devel,3/6] checkasm: remove unused variables

Message ID 20230719195540.46961-3-remi@remlab.net
State New
Headers show
Series RISC-V Linux perf run-time enablement | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont July 19, 2023, 7:55 p.m. UTC
---
 tests/checkasm/checkasm.c | 2 --
 tests/checkasm/checkasm.h | 2 --
 2 files changed, 4 deletions(-)
diff mbox series

Patch

diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
index 933d85bac3..987162e6b5 100644
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -522,7 +522,6 @@  static int measure_nop_time(void)
 {
     uint16_t nops[10000];
     int i, nop_sum = 0;
-    av_unused const int sysfd = state.sysfd;
 #if CONFIG_LINUX_PERF || CONFIG_MACOS_KPERF
     struct {
          uint64_t (*start)(void);
@@ -900,7 +899,6 @@  CheckasmPerf *checkasm_get_perf_context(void)
 {
     CheckasmPerf *perf = &state.current_func_ver->perf;
     memset(perf, 0, sizeof(*perf));
-    perf->sysfd = state.sysfd;
     perf->start = state.start;
     perf->stop = state.stop;
     return perf;
diff --git a/tests/checkasm/checkasm.h b/tests/checkasm/checkasm.h
index 3b3a1ab35b..80e6561e69 100644
--- a/tests/checkasm/checkasm.h
+++ b/tests/checkasm/checkasm.h
@@ -224,7 +224,6 @@  void *checkasm_get_wrapper(void);
 #endif
 
 typedef struct CheckasmPerf {
-    int sysfd;
     uint64_t cycles;
     int iterations;
     uint64_t (*start)(void);
@@ -247,7 +246,6 @@  typedef struct CheckasmPerf {
     do {\
         if (checkasm_bench_func()) {\
             struct CheckasmPerf *restrict perf = checkasm_get_perf_context();\
-            av_unused const int sysfd = perf->sysfd;\
             func_type *tfunc = func_new;\
             uint64_t tsum = 0;\
             int ti, tcount = 0;\