staging: dgap: fix suspect code indent for conditional statements checkpatch warning
authorMark Hounschell <markh@compro.net>
Tue, 4 Mar 2014 21:03:11 +0000 (16:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Mar 2014 22:14:37 +0000 (14:14 -0800)
This patch fixes a checkpatch warning for
suspect code indent for conditional statements

Signed-off-by: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c

index 51f9924eac10b5606461696147b4a85d40a9edb6..4a4cda298630b17c04de15bb50f21b998974c0b0 100644 (file)
@@ -5475,13 +5475,15 @@ static int dgap_param(struct tty_struct *tty)
                if ((ch->ch_digi.digi_flags & DIGI_FAST) || (ch->ch_c_cflag & CBAUDEX))
                        cflag |= HUPCL;
 
-               if ((ch->ch_c_cflag & CBAUDEX) && !(ch->ch_digi.digi_flags & DIGI_FAST)) {
-               /*
-                * The below code is trying to guarantee that only baud rates
-                * 115200, 230400, 460800, 921600 are remapped.  We use exclusive or
-                * because the various baud rates share common bit positions
-                * and therefore can't be tested for easily.
-                */
+               if ((ch->ch_c_cflag & CBAUDEX) &&
+                   !(ch->ch_digi.digi_flags & DIGI_FAST)) {
+                       /*
+                        * The below code is trying to guarantee that only
+                        * baud rates 115200, 230400, 460800, 921600 are
+                        * remapped. We use exclusive or  because the various
+                        * baud rates share common bit positions and therefore
+                        * can't be tested for easily.
+                        */
                        tcflag_t tcflag = (ch->ch_c_cflag & CBAUD) | CBAUDEX;
                        int baudpart = 0;