powerpc: Coding style cleanups
While converting code to use for_each_node_by_type I noticed a number of coding style issues. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
94db7c5e14
commit
dfbe93a222
@@ -709,7 +709,6 @@ static void __init parse_drconf_memory(struct device_node *memory)
|
||||
|
||||
static int __init parse_numa_properties(void)
|
||||
{
|
||||
struct device_node *cpu = NULL;
|
||||
struct device_node *memory;
|
||||
int default_nid = 0;
|
||||
unsigned long i;
|
||||
@@ -732,6 +731,7 @@ static int __init parse_numa_properties(void)
|
||||
* each node to be onlined must have NODE_DATA etc backing it.
|
||||
*/
|
||||
for_each_present_cpu(i) {
|
||||
struct device_node *cpu;
|
||||
int nid;
|
||||
|
||||
cpu = of_get_cpu_node(i, NULL);
|
||||
@@ -800,8 +800,9 @@ new_range:
|
||||
}
|
||||
|
||||
/*
|
||||
* Now do the same thing for each MEMBLOCK listed in the ibm,dynamic-memory
|
||||
* property in the ibm,dynamic-reconfiguration-memory node.
|
||||
* Now do the same thing for each MEMBLOCK listed in the
|
||||
* ibm,dynamic-memory property in the
|
||||
* ibm,dynamic-reconfiguration-memory node.
|
||||
*/
|
||||
memory = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory");
|
||||
if (memory)
|
||||
|
Reference in New Issue
Block a user