USB: ftdi_sio: fix tiocmget indentation
authorJohan Hovold <jhovold@gmail.com>
Mon, 29 Oct 2012 09:56:22 +0000 (10:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 20:19:30 +0000 (13:19 -0700)
Align the modem-control status operands as was originally indented.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ftdi_sio.c

index 48cbc39..2ad5e7c 100644 (file)
@@ -2372,10 +2372,10 @@ static int ftdi_tiocmget(struct tty_struct *tty)
        if (ret < 0)
                goto out;
 
-       ret = (buf[0] & FTDI_SIO_DSR_MASK ? TIOCM_DSR : 0) |
-               (buf[0] & FTDI_SIO_CTS_MASK ? TIOCM_CTS : 0) |
-               (buf[0]  & FTDI_SIO_RI_MASK  ? TIOCM_RI  : 0) |
-               (buf[0]  & FTDI_SIO_RLSD_MASK ? TIOCM_CD  : 0) |
+       ret =   (buf[0] & FTDI_SIO_DSR_MASK  ? TIOCM_DSR : 0) |
+               (buf[0] & FTDI_SIO_CTS_MASK  ? TIOCM_CTS : 0) |
+               (buf[0] & FTDI_SIO_RI_MASK   ? TIOCM_RI  : 0) |
+               (buf[0] & FTDI_SIO_RLSD_MASK ? TIOCM_CD  : 0) |
                priv->last_dtr_rts;
 out:
        kfree(buf);