aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2015-01-07 23:19:50 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 17:06:57 -0500
commitebffbc6cdb8126f1034f5e0e6cd844efb1c3f03f (patch)
treefc0f695fe3adfc665a6b1fec4e1d32c4e9effc21
parent6a1c34f4fd17ba647665fab1a8be6f22ae1f2ca8 (diff)
serial: mcf: fix compile warnings
Trivially fix the following compile time warnings: CC drivers/tty/serial/mcf.o drivers/tty/serial/mcf.c: In function ‘mcf_set_termios’: drivers/tty/serial/mcf.c:201:19: warning: unused variable ‘pp’ drivers/tty/serial/mcf.c: In function ‘mcf_config_rs485’: drivers/tty/serial/mcf.c:444:19: warning: unused variable ‘pp’ Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/mcf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/serial/mcf.c b/drivers/tty/serial/mcf.c
index 1eb02bd74150..35f4719b2c0e 100644
--- a/drivers/tty/serial/mcf.c
+++ b/drivers/tty/serial/mcf.c
@@ -198,7 +198,6 @@ static void mcf_shutdown(struct uart_port *port)
198static void mcf_set_termios(struct uart_port *port, struct ktermios *termios, 198static void mcf_set_termios(struct uart_port *port, struct ktermios *termios,
199 struct ktermios *old) 199 struct ktermios *old)
200{ 200{
201 struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
202 unsigned long flags; 201 unsigned long flags;
203 unsigned int baud, baudclk; 202 unsigned int baud, baudclk;
204#if defined(CONFIG_M5272) 203#if defined(CONFIG_M5272)
@@ -441,7 +440,6 @@ static int mcf_verify_port(struct uart_port *port, struct serial_struct *ser)
441/* Enable or disable the RS485 support */ 440/* Enable or disable the RS485 support */
442static int mcf_config_rs485(struct uart_port *port, struct serial_rs485 *rs485) 441static int mcf_config_rs485(struct uart_port *port, struct serial_rs485 *rs485)
443{ 442{
444 struct mcf_uart *pp = container_of(port, struct mcf_uart, port);
445 unsigned char mr1, mr2; 443 unsigned char mr1, mr2;
446 444
447 /* Get mode registers */ 445 /* Get mode registers */