6e2f297d49
Resolves: RHEL-58318 Signed-off-by: Tao Liu <ltao@redhat.com>
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 13916f7e14a2e6270e40519aa2f59319136dad08 Mon Sep 17 00:00:00 2001
|
|
From: Rosen Penev <rosenp@gmail.com>
|
|
Date: Sun, 30 Jun 2024 17:16:30 -0700
|
|
Subject: [PATCH 30/44] clang-tidy: remove pointless casts
|
|
|
|
Found with readability-redundant-casting
|
|
|
|
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
---
|
|
cputree.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/cputree.c b/cputree.c
|
|
index 6c7b3b4..4820bdf 100644
|
|
--- a/cputree.c
|
|
+++ b/cputree.c
|
|
@@ -271,7 +271,7 @@ static struct topo_obj* add_cpu_to_cache_domain(struct topo_obj *cpu,
|
|
entry = g_list_find(cache->children, cpu);
|
|
if (!entry) {
|
|
cache->children = g_list_append(cache->children, cpu);
|
|
- cpu->parent = (struct topo_obj *)cache;
|
|
+ cpu->parent = cache;
|
|
}
|
|
|
|
if (!numa_avail || (nodeid > NUMA_NO_NODE))
|
|
@@ -441,7 +441,7 @@ static void dump_numa_node_num(struct topo_obj *p, void *data __attribute__((unu
|
|
|
|
static void dump_balance_obj(struct topo_obj *d, void *data __attribute__((unused)))
|
|
{
|
|
- struct topo_obj *c = (struct topo_obj *)d;
|
|
+ struct topo_obj *c = d;
|
|
log(TO_CONSOLE, LOG_INFO, "%s%s%s%sCPU number %i numa_node is ",
|
|
log_indent, log_indent, log_indent, log_indent, c->number);
|
|
for_each_object(cpu_numa_node(c), dump_numa_node_num, NULL);
|
|
--
|
|
2.47.0
|
|
|