aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/dgap
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-05-26 19:23:01 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-26 10:35:24 -0700
commit462310f3f3f2f86b02d2a0c8681ea7900e2bb82c (patch)
treed1fd0aa2f103f43028c8d9e8534707f2f02c05f0 /drivers/staging/dgap
parentddafd514b1729718690c04b875035da60ec6ef04 (diff)
downloadlinux-stericsson-462310f3f3f2f86b02d2a0c8681ea7900e2bb82c.tar.gz
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: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r--drivers/staging/dgap/dgap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index 1475532b4df0..60b7d700b07d 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -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;