Skip to contentSkip to conversation

staging: speakup: remove unused code

PATCH New Okash Khawaja 1 participant 1 message Jun 1, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/staging/speakup/spk_ttyio.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/staging/speakup/spk_ttyio.c +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);