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:
Okash Khawaja 2017-06-01 14:15:29 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 011cca558b
Коммит 349190d56b
1 изменённых файлов: 0 добавлений и 3 удалений

Просмотреть файл

@ -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);