[linux-yocto] [PATCH 31/48] drivers/tty: Fix a Compile Warning in the AMBA PL011
Daniel Dragomir
daniel.dragomir at windriver.com
Mon Dec 11 05:14:01 PST 2017
From: John Jacques <john.jacques at intel.com>
Initialize a variable to avoid a compiler warning.
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 fb8f2b8..108c96e 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -2189,7 +2189,7 @@ pl011_console_write(struct console *co, const char *s, unsigned int count)
{
struct uart_amba_port *uap = amba_ports[co->index];
unsigned int old_cr = 0, 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