summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2012-05-12 08:04:09 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-12 11:32:01 -0700
commit918f832290f01b7759826f86bf08562820545e00 (patch)
tree764e1a63b7729f06dc3ad1de2f56802cd40e6d46 /arch/sparc
parentd6ea55733ddfe0d9668096d3de78db479a83cc47 (diff)
downloadop-kernel-dev-918f832290f01b7759826f86bf08562820545e00.zip
op-kernel-dev-918f832290f01b7759826f86bf08562820545e00.tar.gz
sparc32: fix warning in floopy glue
Fix following warning: arch/sparc/include/asm/floppy_32.h:342:5: warning: 'op' may be used uninitialized in this function The warning are legitimite and we can end up using op uninitialized. This fixes build with my gcc on UP. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/floppy_32.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/floppy_32.h b/arch/sparc/include/asm/floppy_32.h
index f954856..491eb68 100644
--- a/arch/sparc/include/asm/floppy_32.h
+++ b/arch/sparc/include/asm/floppy_32.h
@@ -334,6 +334,7 @@ static int sun_floppy_init(void)
/* Look up irq in platform_device.
* We try "SUNW,fdtwo" and "fd"
*/
+ op = NULL;
for_each_node_by_name(dp, "SUNW,fdtwo") {
op = of_find_device_by_node(dp);
if (op)
OpenPOWER on IntegriCloud