diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-09-16 16:19:06 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 16:53:57 -0700 |
commit | 492a1e7be585c88a04ba763bb77fc865700e209d (patch) | |
tree | 1f4779b4ad567ba757653675cc2c8ef1845f677f /drivers/staging/dgap/dgap.h | |
parent | Staging: dgap: Remove unnecessary variable. (diff) | |
download | linux-dev-492a1e7be585c88a04ba763bb77fc865700e209d.tar.xz linux-dev-492a1e7be585c88a04ba763bb77fc865700e209d.zip |
staging: dgap: use schedule_timeout_interruptible() instead of dgap_ms_sleep()
Using schedule_timeout_interruptible() is exactly same as
setting a status of current process and calling schedule_timeout().
Removes dgap_ms_sleep(), because this function is used
only when closing tty channel on dgap_tty_close().
And also removes ch_close_delay that is always set to 250
on dgap_tty_init().
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap/dgap.h')
-rw-r--r-- | drivers/staging/dgap/dgap.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h index a0307b9992da..ba05c654fa61 100644 --- a/drivers/staging/dgap/dgap.h +++ b/drivers/staging/dgap/dgap.h @@ -982,9 +982,6 @@ struct channel_t { u32 ch_open_count; /* open count */ u32 ch_flags; /* Channel flags */ - u32 ch_close_delay; /* How long we should drop */ - /* RTS/DTR for */ - u32 ch_cpstime; /* Time for CPS calculations */ tcflag_t ch_c_iflag; /* channel iflags */ |