]> err.no Git - linux-2.6/commitdiff
[ARM] 2933/1: S3C2410 - fix serial port warnings
authorBen Dooks <ben-linux@fluff.org>
Sun, 25 Sep 2005 22:02:49 +0000 (23:02 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Sep 2005 22:02:49 +0000 (23:02 +0100)
Patch from Ben Dooks

Fix the following warnings produced from
drivers/char/s3c2410.c.
drivers/serial/s3c2410.c:757: warning: 'clk' may be used uninitialized
drivers/serial/s3c2410.c:756: warning: 'clksrc' may be used uninitialized

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/s3c2410.c

index c361c6fb08092135171a7165876bb52c27313f19..1195e6a0901aec9e45aad0722856b99d6526051e 100644 (file)
@@ -753,8 +753,8 @@ static void s3c24xx_serial_set_termios(struct uart_port *port,
 {
        struct s3c2410_uartcfg *cfg = s3c24xx_port_to_cfg(port);
        struct s3c24xx_uart_port *ourport = to_ourport(port);
-       struct s3c24xx_uart_clksrc *clksrc;
-       struct clk *clk;
+       struct s3c24xx_uart_clksrc *clksrc = NULL;
+       struct clk *clk = NULL;
        unsigned long flags;
        unsigned int baud, quot;
        unsigned int ulcon;