[PATCH 1/3] powerpc: mpc832x_rdb: fix compiler warning

Subsystems: linux for powerpc (32-bit and 64-bit), linux for powerpc embedded ppc8xx and ppc83xx, the rest

STALE6761d

2 messages, 2 authors, 2008-02-06 · open the first message on its own page

[PATCH 1/3] powerpc: mpc832x_rdb: fix compiler warning

From: Kim Phillips <hidden>
Date: 2008-02-02 00:10:01

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

Signed-off-by: Kim Phillips <redacted>
---
 arch/powerpc/platforms/83xx/mpc832x_rdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/83xx/mpc832x_rdb.c b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
index 9f0fd88..e7f706b 100644
--- a/arch/powerpc/platforms/83xx/mpc832x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc832x_rdb.c
@@ -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);
 
-- 
1.5.2.2

Re: [PATCH 1/3] powerpc: mpc832x_rdb: fix compiler warning

From: Kumar Gala <hidden>
Date: 2008-02-06 05:44:08

On Feb 1, 2008, at 6:09 PM, Kim Phillips wrote:
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
uninitialized in this function

Signed-off-by: Kim Phillips <redacted>
---
arch/powerpc/platforms/83xx/mpc832x_rdb.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
applied.

- k=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help