public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* tty: Fix comment for value returned by tty_ldisc_receive_buf
@ 2018-01-04  0:04 Samuel Thibault
  2018-01-04 14:51 ` Johan Hovold
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Thibault @ 2018-01-04  0:04 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby; +Cc: linux-kernel

tty_ldisc_receive_buf actually returns the number of bytes processed by
receive_buf or receive_buf2.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

---
 drivers/tty/tty_buffer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/tty/tty_buffer.c
+++ b/drivers/tty/tty_buffer.c
@@ -420,7 +420,7 @@ EXPORT_SYMBOL_GPL(tty_prepare_flip_strin
  *	Callers other than flush_to_ldisc() need to exclude the kworker
  *	from concurrent use of the line discipline, see paste_selection().
  *
- *	Returns the number of bytes not processed
+ *	Returns the number of bytes processed
  */
 int tty_ldisc_receive_buf(struct tty_ldisc *ld, const unsigned char *p,
 			  char *f, int count)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-04 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04  0:04 tty: Fix comment for value returned by tty_ldisc_receive_buf Samuel Thibault
2018-01-04 14:51 ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox