Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751623AbeADALO (ORCPT + 1 other); Wed, 3 Jan 2018 19:11:14 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:56011 "EHLO hera.aquilenet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbeADALN (ORCPT ); Wed, 3 Jan 2018 19:11:13 -0500 X-Greylist: delayed 376 seconds by postgrey-1.27 at vger.kernel.org; Wed, 03 Jan 2018 19:11:13 EST Date: Thu, 4 Jan 2018 01:04:53 +0100 From: Samuel Thibault To: Greg Kroah-Hartman , Jiri Slaby Cc: linux-kernel@vger.kernel.org Subject: tty: Fix comment for value returned by tty_ldisc_receive_buf Message-ID: <20180104000453.3xo2mrznhnuqbuyh@var.youpi.perso.aquilenet.fr> Mail-Followup-To: Samuel Thibault , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: tty_ldisc_receive_buf actually returns the number of bytes processed by receive_buf or receive_buf2. Signed-off-by: Samuel Thibault --- 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)