From: Johan Hovold Date: Fri, 3 Nov 2017 14:18:05 +0000 (+0100) Subject: tty: fix tty_ldisc_receive_buf() documentation X-Git-Tag: rel_imx_4.19.35_1.1.0~11323^2~27 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=e7e51dcf3b8a5f65c5653a054ad57eb2492a90d0;p=linux.git tty: fix tty_ldisc_receive_buf() documentation The tty_ldisc_receive_buf() helper returns the number of bytes processed so drop the bogus "not" from the kernel doc comment. Fixes: 8d082cd300ab ("tty: Unify receive_buf() code paths") Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index f8eba1c5412f..677fa99b7747 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c @@ -446,7 +446,7 @@ EXPORT_SYMBOL_GPL(tty_prepare_flip_string); * 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)