]> Git Repo - linux.git/commitdiff
tty: synclink_gt: drop redundant tty-port initialisation
authorJohan Hovold <[email protected]>
Wed, 7 Apr 2021 10:23:34 +0000 (12:23 +0200)
committerGreg Kroah-Hartman <[email protected]>
Wed, 7 Apr 2021 15:22:07 +0000 (17:22 +0200)
The port close_delay and closing_wait parameters have already been by
tty_port_init() so drop the redundant driver initialisation to the
default values.

Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/synclink_gt.c

index 1db908f62fdecb4c8c89c75b152691649caada64..994618618466891b716e0f08d80be7d31e0089a9 100644 (file)
@@ -3511,8 +3511,6 @@ static struct slgt_info *alloc_dev(int adapter_num, int port_num, struct pci_dev
                info->max_frame_size = 4096;
                info->base_clock = 14745600;
                info->rbuf_fill_level = DMABUFSIZE;
-               info->port.close_delay = 5*HZ/10;
-               info->port.closing_wait = 30*HZ;
                init_waitqueue_head(&info->status_event_wait_q);
                init_waitqueue_head(&info->event_wait_q);
                spin_lock_init(&info->netlock);
This page took 0.061036 seconds and 4 git commands to generate.