[linux-yocto] [PATCH 05/14] drivers/tty: Fix a Compile Warning

Daniel Dragomir daniel.dragomir at windriver.com
Mon Dec 4 02:57:55 PST 2017


From: John Jacques <john.jacques at intel.com>

Fix a compile warning (variable might be used uninitialized)
in amba-pl011.c.

Signed-off-by: John Jacques <john.jacques at intel.com>
---
 drivers/tty/serial/amba-pl011.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index a8e624f..a5a934c 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -1929,7 +1929,7 @@ pl011_console_write(struct console *co, const char *s, unsigned int count)
 {
 	struct uart_amba_port *uap = amba_ports[co->index];
 	unsigned int status, old_cr, new_cr;
-	unsigned long flags;
+	unsigned long flags = 0;
 	int locked = 1;
 
 	clk_enable(uap->clk);
-- 
2.7.4



More information about the linux-yocto mailing list