staging: speakup: remove unused code
In spk_ttyio_release we read tty's index but never do anything with it. The patch removes this dead code. Signed-off-by: Okash Khawaja <okash.khawaja@gmail.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
011cca558b
Коммит
349190d56b
|
@ -247,13 +247,10 @@ EXPORT_SYMBOL_GPL(spk_ttyio_synth_probe);
|
|||
|
||||
void spk_ttyio_release(void)
|
||||
{
|
||||
int idx;
|
||||
|
||||
if (!speakup_tty)
|
||||
return;
|
||||
|
||||
tty_lock(speakup_tty);
|
||||
idx = speakup_tty->index;
|
||||
|
||||
if (speakup_tty->ops->close)
|
||||
speakup_tty->ops->close(speakup_tty, NULL);
|
||||
|
|
Загрузка…
Ссылка в новой задаче