提交 918f8322 编写于 作者: S Sam Ravnborg 提交者: David S. Miller

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: NSam Ravnborg <sam@ravnborg.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d6ea5573
...@@ -334,6 +334,7 @@ static int sun_floppy_init(void) ...@@ -334,6 +334,7 @@ static int sun_floppy_init(void)
/* Look up irq in platform_device. /* Look up irq in platform_device.
* We try "SUNW,fdtwo" and "fd" * We try "SUNW,fdtwo" and "fd"
*/ */
op = NULL;
for_each_node_by_name(dp, "SUNW,fdtwo") { for_each_node_by_name(dp, "SUNW,fdtwo") {
op = of_find_device_by_node(dp); op = of_find_device_by_node(dp);
if (op) if (op)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册