diff --git a/src/ocf_stats.c b/src/ocf_stats.c index 3a5f9ba..b5fd0c9 100644 --- a/src/ocf_stats.c +++ b/src/ocf_stats.c @@ -1,5 +1,6 @@ /* * Copyright(c) 2012-2021 Intel Corporation + * Copyright(c) 2024 Huawei Technologies * SPDX-License-Identifier: BSD-3-Clause */ @@ -415,9 +416,6 @@ void ocf_core_update_stats(ocf_core_t core, struct ocf_io *io) OCF_CHECK_NULL(core); OCF_CHECK_NULL(io); - core_id = ocf_core_get_id(core); - cache = ocf_core_get_cache(core); - stats = &core->counters->debug_stats; idx = to_packet_idx(io->bytes);