Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: tty_jobctrl: Fix coding style issues of block comments

Fix coding style issues of block comments, reported by checkpatch.pl.
Besides, do some expression optimization for the sentenses.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1617779210-51576-5-git-send-email-tanxiaofei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xiaofei Tan and committed by
Greg Kroah-Hartman
63eeafd4 d4e1d903

+10 -6
+10 -6
drivers/tty/tty_jobctrl.c
··· 204 204 spin_lock_irq(&p->sighand->siglock); 205 205 if (p->signal->tty == tty) { 206 206 p->signal->tty = NULL; 207 - /* We defer the dereferences outside fo 208 - the tasklist lock */ 207 + /* 208 + * We defer the dereferences outside of 209 + * the tasklist lock. 210 + */ 209 211 refs++; 210 212 } 211 213 if (!p->signal->leader) { ··· 330 328 */ 331 329 void no_tty(void) 332 330 { 333 - /* FIXME: Review locking here. The tty_lock never covered any race 334 - between a new association and proc_clear_tty but possible we need 335 - to protect against this anyway */ 331 + /* 332 + * FIXME: Review locking here. The tty_lock never covered any race 333 + * between a new association and proc_clear_tty but possibly we need 334 + * to protect against this anyway. 335 + */ 336 336 struct task_struct *tsk = current; 337 337 338 338 disassociate_ctty(0); ··· 540 536 /* 541 537 * (tty == real_tty) is a cheap way of 542 538 * testing if the tty is NOT a master pty. 543 - */ 539 + */ 544 540 if (tty == real_tty && current->signal->tty != real_tty) 545 541 return -ENOTTY; 546 542