Skip to contentSkip to conversation

powerpc: mpc832x_rdb: fix compiler warning

PATCH Applied Kim Phillips 2 participants 2 messages Feb 2, 2008 – Feb 6, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 powerpc: mpc832x_rdb: fix compiler warning

arch/powerpc/platforms/83xx/mpc832x_rdb.c: In function ‘mpc832x_rdb_setup_arch’:
arch/powerpc/platforms/83xx/mpc832x_rdb.c:104: warning: ‘np’ is used uninitialized in this function

---
 arch/powerpc/platforms/83xx/mpc832x_rdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/83xx/mpc832x_rdb.c +1 -1
index 9f0fd88..e7f706b 100644
@@ -101,7 +101,7 @@ static void __init mpc832x_rdb_setup_arch(void)
 #ifdef CONFIG_QUICC_ENGINE
 	qe_reset();
 
-	if ((np = of_find_node_by_name(np, "par_io")) != NULL) {
+	if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) {
 		par_io_init(np);
 		of_node_put(np);
 
Signature · 1 line
1.5.2.2
Applied
#1 lore raw
Quoted 3 lines · Kim Phillips

arch/powerpc/platforms/83xx/mpc832x_rdb.c: In function =20 =91mpc832x_rdb_setup_arch=92:
arch/powerpc/platforms/83xx/mpc832x_rdb.c:104: warning: =91np=92 is =

used =20

Quoted 6 lines

uninitialized in this function

---
arch/powerpc/platforms/83xx/mpc832x_rdb.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

applied.

- k=