aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup
diff options
context:
space:
mode:
authorOkash Khawaja <okash.khawaja@gmail.com>2017-06-01 14:15:29 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-03 17:38:25 +0900
commit349190d56be6eccb940df18831d8654b19a697aa (patch)
treece26a6893335ce21e8388dc55a574ea06c84c847 /drivers/staging/speakup
parentstaging: speakup: check for null before calling TTY's flush_buffer (diff)
downloadlinux-dev-349190d56be6eccb940df18831d8654b19a697aa.tar.xz
linux-dev-349190d56be6eccb940df18831d8654b19a697aa.zip
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>
Diffstat (limited to 'drivers/staging/speakup')
-rw-r--r--drivers/staging/speakup/spk_ttyio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/speakup/spk_ttyio.c b/drivers/staging/speakup/spk_ttyio.c
index 7b1eaf976f52..d55c056bbefe 100644
--- a/drivers/staging/speakup/spk_ttyio.c
+++ b/drivers/staging/speakup/spk_ttyio.c
@@ -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);