serial: imx: fix uninitialized variable warning
authorShawn Guo <shawn.guo@linaro.org>
Mon, 18 Feb 2013 05:15:36 +0000 (13:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Feb 2013 19:05:14 +0000 (11:05 -0800)
commitf30e826069918da0876493e2de9ba13287b68e0a
tree54cfe2e47851a241323d94be39fb4c6428ad5e29
parentc3e1becebfe115f827ea2242218c9a8f627c094f
serial: imx: fix uninitialized variable warning

Commit 677fe55 (serial: imx: Fix recursive locking bug) introduces an
uninitialized variable warning as below.

  CC      drivers/tty/serial/imx.o
drivers/tty/serial/imx.c: In function ‘imx_console_write’:
include/linux/spinlock.h:340:2: warning: ‘flags’ may be used uninitialized in this function [-Wuninitialized]
drivers/tty/serial/imx.c:1214:16: note: ‘flags’ was declared here

Initialize the variable to suppress the warning.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c