From 43608fc81271f9b9b373379ef25172a559e198d2 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Sat, 11 May 2024 00:02:52 +0200 Subject: [PATCH] Remove unused function Signed-off-by: Robert Baldyga --- src/ocf_core.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/ocf_core.c b/src/ocf_core.c index 16fb0c0..011816a 100644 --- a/src/ocf_core.c +++ b/src/ocf_core.c @@ -1,5 +1,6 @@ /* * Copyright(c) 2012-2021 Intel Corporation + * Copyright(c) 2024 Huawei Technologies * SPDX-License-Identifier: BSD-3-Clause */ @@ -95,17 +96,6 @@ bool ocf_core_is_valid(ocf_cache_t cache, ocf_core_id_t id) return true; } -int ocf_core_get(ocf_cache_t cache, ocf_core_id_t id, ocf_core_t *core) -{ - OCF_CHECK_NULL(cache); - - if (!ocf_core_is_valid(cache, id)) - return -OCF_ERR_CORE_NOT_AVAIL; - - *core = &cache->core[id]; - return 0; -} - uint32_t ocf_core_get_seq_cutoff_threshold(ocf_core_t core) { return env_atomic_read(&core->conf_meta->seq_cutoff_threshold);