Commit 462310f3 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

staging: dgap: remove unneeded kfree() for ttys in tty_driver

In destruct_tty_driver() from put_tty_driver() will free the
ttys in tty_driver.
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ddafd514
......@@ -1503,8 +1503,6 @@ static void dgap_tty_uninit(struct board_t *brd)
tty_unregister_device(brd->serial_driver, i);
}
tty_unregister_driver(brd->serial_driver);
kfree(brd->serial_driver->ttys);
brd->serial_driver->ttys = NULL;
put_tty_driver(brd->serial_driver);
kfree(brd->serial_ports);
brd->dgap_major_serial_registered = FALSE;
......@@ -1520,8 +1518,6 @@ static void dgap_tty_uninit(struct board_t *brd)
tty_unregister_device(brd->print_driver, i);
}
tty_unregister_driver(brd->print_driver);
kfree(brd->print_driver->ttys);
brd->print_driver->ttys = NULL;
put_tty_driver(brd->print_driver);
kfree(brd->printer_ports);
brd->dgap_major_transparent_print_registered = FALSE;
......
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