Commit 16b00ae8 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

tty: drop obsolete termios_locked comments

Drop comments about tty-driver termios_locked structures, which have
been outdated since commit fe6e29fd ("tty: simplify ktermios
allocation").
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a7e6f78
...@@ -1520,7 +1520,7 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx) ...@@ -1520,7 +1520,7 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx)
* This code guarantees that either everything succeeds and the * This code guarantees that either everything succeeds and the
* TTY is ready for operation, or else the table slots are vacated * TTY is ready for operation, or else the table slots are vacated
* and the allocated memory released. (Except that the termios * and the allocated memory released. (Except that the termios
* and locked termios may be retained.) * may be retained.)
*/ */
if (!try_module_get(driver->owner)) if (!try_module_get(driver->owner))
...@@ -3441,11 +3441,6 @@ static void destruct_tty_driver(struct kref *kref) ...@@ -3441,11 +3441,6 @@ static void destruct_tty_driver(struct kref *kref)
struct ktermios *tp; struct ktermios *tp;
if (driver->flags & TTY_DRIVER_INSTALLED) { if (driver->flags & TTY_DRIVER_INSTALLED) {
/*
* Free the termios and termios_locked structures because
* we don't want to get memory leaks when modular tty
* drivers are removed from the kernel.
*/
for (i = 0; i < driver->num; i++) { for (i = 0; i < driver->num; i++) {
tp = driver->termios[i]; tp = driver->termios[i];
if (tp) { if (tp) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment