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

tty: tty_port: Fix coding style issues of block comments

Fix coding style issues of block comments, reported by checkpatch.pl.
Besides, add a period at the end of the sentenses.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1620811585-18582-18-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
1df92640 54ad59a2

+9 -5
+9 -5
drivers/tty/tty_port.c
··· 468 468 DEFINE_WAIT(wait); 469 469 470 470 /* if non-blocking mode is set we can pass directly to open unless 471 - the port has just hung up or is in another error state */ 471 + * the port has just hung up or is in another error state. 472 + */ 472 473 if (tty_io_error(tty)) { 473 474 tty_port_set_active(port, 1); 474 475 return 0; ··· 486 485 do_clocal = 1; 487 486 488 487 /* Block waiting until we can proceed. We may need to wait for the 489 - carrier, but we must also wait for any close that is in progress 490 - before the next open may complete */ 488 + * carrier, but we must also wait for any close that is in progress 489 + * before the next open may complete. 490 + */ 491 491 492 492 retval = 0; 493 493 ··· 505 503 506 504 prepare_to_wait(&port->open_wait, &wait, TASK_INTERRUPTIBLE); 507 505 /* Check for a hangup or uninitialised port. 508 - Return accordingly */ 506 + * Return accordingly. 507 + */ 509 508 if (tty_hung_up_p(filp) || !tty_port_initialized(port)) { 510 509 if (port->flags & ASYNC_HUP_NOTIFY) 511 510 retval = -EAGAIN; ··· 533 530 finish_wait(&port->open_wait, &wait); 534 531 535 532 /* Update counts. A parallel hangup will have set count to zero and 536 - we must not mess that up further */ 533 + * we must not mess that up further. 534 + */ 537 535 spin_lock_irqsave(&port->lock, flags); 538 536 if (!tty_hung_up_p(filp)) 539 537 port->count++;