Remove core id from public API

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2019-07-22 14:43:30 +02:00
parent a32ca74519
commit 92c7e12549
3 changed files with 236 additions and 303 deletions

View File

@@ -172,6 +172,9 @@ struct ocf_cache {
static inline ocf_core_t ocf_cache_get_core(ocf_cache_t cache,
ocf_core_id_t core_id)
{
if (core_id >= OCF_CORE_MAX)
return NULL;
return &cache->core[core_id];
}