[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231017062006.10879-1-kunyu@nfschina.com>
Date: Tue, 17 Oct 2023 14:20:06 +0800
From: Li kunyu <kunyu@...china.com>
To: mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
bristot@...hat.com, vschneid@...hat.com
Cc: linux-kernel@...r.kernel.org, Li kunyu <kunyu@...china.com>
Subject: [PATCH] sched: topology: Remove unnecessary ‘0’ values from nr_levels
nr_levels is assigned first, so it does not need to initialize the
assignment.
Signed-off-by: Li kunyu <kunyu@...china.com>
---
kernel/sched/topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index 05a5bc678c089..0ead4e72bc6ca 100644
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -1823,7 +1823,7 @@ void sched_init_numa(int offline_node)
{
struct sched_domain_topology_level *tl;
unsigned long *distance_map;
- int nr_levels = 0;
+ int nr_levels;
int i, j;
int *distances;
struct cpumask ***masks;
--
2.18.2
Powered by blists - more mailing lists