]> Git Repo - linux.git/commitdiff
tty: tty_jobctrl: Fix coding style issues of block comments
authorXiaofei Tan <[email protected]>
Wed, 7 Apr 2021 07:06:44 +0000 (15:06 +0800)
committerGreg Kroah-Hartman <[email protected]>
Sat, 10 Apr 2021 08:33:00 +0000 (10:33 +0200)
Fix coding style issues of block comments, reported by checkpatch.pl.
Besides, do some expression optimization for the sentenses.

Signed-off-by: Xiaofei Tan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/tty_jobctrl.c

index 86070f772aa0d09a77510976e37614fae4aa8d8e..5b4ab1637689c5f43de1e1850c6bfc5fa1742c9c 100644 (file)
@@ -204,8 +204,10 @@ int tty_signal_session_leader(struct tty_struct *tty, int exit_session)
                        spin_lock_irq(&p->sighand->siglock);
                        if (p->signal->tty == tty) {
                                p->signal->tty = NULL;
-                               /* We defer the dereferences outside fo
-                                  the tasklist lock */
+                               /*
+                                * We defer the dereferences outside of
+                                * the tasklist lock.
+                                */
                                refs++;
                        }
                        if (!p->signal->leader) {
@@ -328,9 +330,11 @@ void disassociate_ctty(int on_exit)
  */
 void no_tty(void)
 {
-       /* FIXME: Review locking here. The tty_lock never covered any race
-          between a new association and proc_clear_tty but possible we need
-          to protect against this anyway */
+       /*
+        * FIXME: Review locking here. The tty_lock never covered any race
+        * between a new association and proc_clear_tty but possibly we need
+        * to protect against this anyway.
+        */
        struct task_struct *tsk = current;
 
        disassociate_ctty(0);
@@ -536,7 +540,7 @@ static int tiocgsid(struct tty_struct *tty, struct tty_struct *real_tty, pid_t _
        /*
         * (tty == real_tty) is a cheap way of
         * testing if the tty is NOT a master pty.
-       */
+        */
        if (tty == real_tty && current->signal->tty != real_tty)
                return -ENOTTY;
 
This page took 0.056634 seconds and 4 git commands to generate.