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_ldisc: Fix coding style issues of block comments

Fix coding style issues of block comments, reported by checkpatch.pl.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1617779210-51576-9-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
72a8dcd7 d7238359

+20 -12
+20 -12
drivers/tty/tty_ldisc.c
··· 529 529 const char *name = tty_name(tty); 530 530 531 531 pr_warn("Falling back ldisc for %s.\n", name); 532 - /* The traditional behaviour is to fall back to N_TTY, we 533 - want to avoid falling back to N_NULL unless we have no 534 - choice to avoid the risk of breaking anything */ 532 + /* 533 + * The traditional behaviour is to fall back to N_TTY, we 534 + * want to avoid falling back to N_NULL unless we have no 535 + * choice to avoid the risk of breaking anything 536 + */ 535 537 if (tty_ldisc_failto(tty, N_TTY) < 0 && 536 538 tty_ldisc_failto(tty, N_NULL) < 0) 537 539 panic("Couldn't open N_NULL ldisc for %s.", name); ··· 602 600 up_read(&tty->termios_rwsem); 603 601 } 604 602 605 - /* At this point we hold a reference to the new ldisc and a 606 - reference to the old ldisc, or we hold two references to 607 - the old ldisc (if it was restored as part of error cleanup 608 - above). In either case, releasing a single reference from 609 - the old ldisc is correct. */ 603 + /* 604 + * At this point we hold a reference to the new ldisc and a 605 + * reference to the old ldisc, or we hold two references to 606 + * the old ldisc (if it was restored as part of error cleanup 607 + * above). In either case, releasing a single reference from 608 + * the old ldisc is correct. 609 + */ 610 610 new_ldisc = old_ldisc; 611 611 out: 612 612 tty_ldisc_unlock(tty); 613 613 614 - /* Restart the work queue in case no characters kick it off. Safe if 615 - already running */ 614 + /* 615 + * Restart the work queue in case no characters kick it off. Safe if 616 + * already running 617 + */ 616 618 tty_buffer_restart_work(tty->port); 617 619 err: 618 620 tty_ldisc_put(new_ldisc); /* drop the extra reference */ ··· 818 812 tty_ldisc_kill(o_tty); 819 813 tty_ldisc_unlock_pair(tty, o_tty); 820 814 821 - /* And the memory resources remaining (buffers, termios) will be 822 - disposed of when the kref hits zero */ 815 + /* 816 + * And the memory resources remaining (buffers, termios) will be 817 + * disposed of when the kref hits zero 818 + */ 823 819 824 820 tty_ldisc_debug(tty, "released\n"); 825 821 }