From: Uwe Kleine-König Date: Tue, 24 Feb 2015 10:17:06 +0000 (+0100) Subject: serial: imx: remove long dead code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=694e6729bf0e317e0b67c37cda1b74a5b04fbc07;p=openwrt%2Fstaging%2Fblogic.git serial: imx: remove long dead code This if (0) exists since the driver was introduced in commit c49bde83eb6a ([ARM PATCH] 1956/2: Re: Motorola i.MX serial driver) back in 2004. Signed-off-by: Uwe Kleine-König Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 0f2afae25f6e..9e3a8ffe97b4 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1370,15 +1370,6 @@ imx_set_termios(struct uart_port *port, struct ktermios *termios, unsigned long num, denom; uint64_t tdiv64; - /* - * If we don't support modem control lines, don't allow - * these to be set. - */ - if (0) { - termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); - termios->c_cflag |= CLOCAL; - } - /* * We only support CS7 and CS8. */