tty: tty_baudrate: Fix coding style issues of block comments
authorXiaofei Tan <tanxiaofei@huawei.com>
Wed, 12 May 2021 09:26:10 +0000 (17:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 16:29:12 +0000 (18:29 +0200)
Fix coding style issues of block comments, reported by checkpatch.pl.
Besides, add a period at the end of comment sentenses.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1620811585-18582-3-git-send-email-tanxiaofei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_baudrate.c

index b3f5ba95e03c5fb93ff40e086f4486d1c76f02ee..426b1252781a75b80d145c64ded814e21e9b8449 100644 (file)
@@ -159,8 +159,9 @@ void tty_termios_encode_baud_rate(struct ktermios *termios,
 #endif
 #ifdef BOTHER
        /* If the user asked for a precise weird speed give a precise weird
-          answer. If they asked for a Bfoo speed they may have problems
-          digesting non-exact replies so fuzz a bit */
+        * answer. If they asked for a Bfoo speed they may have problems
+        * digesting non-exact replies so fuzz a bit.
+        */
 
        if ((termios->c_cflag & CBAUD) == BOTHER) {
                oclose = 0;
@@ -191,7 +192,8 @@ void tty_termios_encode_baud_rate(struct ktermios *termios,
                if (ibaud - iclose <= baud_table[i] &&
                    ibaud + iclose >= baud_table[i]) {
                        /* For the case input == output don't set IBAUD bits
-                          if the user didn't do so */
+                        * if the user didn't do so.
+                        */
                        if (ofound == i && !ibinput)
                                ifound  = i;
 #ifdef IBSHIFT
@@ -211,7 +213,8 @@ void tty_termios_encode_baud_rate(struct ktermios *termios,
        if (ofound == -1)
                termios->c_cflag |= BOTHER;
        /* Set exact input bits only if the input and output differ or the
-          user already did */
+        * user already did.
+        */
        if (ifound == -1 && (ibaud != obaud || ibinput))
                termios->c_cflag |= (BOTHER << IBSHIFT);
 #else