n_tty: Remove stale read lock comment
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 19:36:38 +0000 (15:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:34:36 +0000 (16:34 -0800)
The stale comment refers to lock behavior which was eliminated in
commit 6d76bd2618535c581f1673047b8341fd291abc67,
n_tty: Make N_TTY ldisc receive path lockless.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c

index 6dcaa5294f1ef2fe5b61d7f1cbb685679b87da4f..0cb0e12f87c741975b975df3bd856446b82fd465 100644 (file)
@@ -2248,8 +2248,6 @@ static ssize_t n_tty_read(struct tty_struct *tty, struct file *file,
                                nr--;
                        }
 
-                       /* The copy function takes the read lock and handles
-                          locking internally for this case */
                        uncopied = copy_from_read_buf(tty, &b, &nr);
                        uncopied += copy_from_read_buf(tty, &b, &nr);
                        if (uncopied) {