mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 09:56:25 -04:00
drm/amdkfd: Remove unused variable
kfd_topology_device->cache_count is not used by other fucntions, so remove it. Signed-off-by: Ma Jun <Jun.Ma2@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1131,7 +1131,6 @@ static int kfd_parse_subtype_cache(struct crat_subtype_cache *cache,
|
||||
if (cache->flags & CRAT_CACHE_FLAGS_SIMD_CACHE)
|
||||
props->cache_type |= HSA_CACHE_TYPE_HSACU;
|
||||
|
||||
dev->cache_count++;
|
||||
dev->node_props.caches_count++;
|
||||
list_add_tail(&props->list, &dev->cache_props);
|
||||
|
||||
|
||||
@@ -128,7 +128,6 @@ struct kfd_topology_device {
|
||||
uint32_t proximity_domain;
|
||||
struct kfd_node_properties node_props;
|
||||
struct list_head mem_props;
|
||||
uint32_t cache_count;
|
||||
struct list_head cache_props;
|
||||
struct list_head io_link_props;
|
||||
struct list_head p2p_link_props;
|
||||
|
||||
Reference in New Issue
Block a user