From 1d903f4038b2cd59c07f65d058063fdc9134a2ff Mon Sep 17 00:00:00 2001 From: Michael Lyulko Date: Tue, 1 Mar 2022 13:04:48 +0200 Subject: [PATCH] Fix debug stats compilation Signed-off-by: Michal Mielewczyk --- src/ocf_stats.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);