Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1655135 > unrolled thread

[patch] staging: speakup: remove unused code

Started byOkash Khawaja <okash.khawaja@gmail.com>
First post2017-06-01 15:20 +0200
Last post2017-06-01 15:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [patch] staging: speakup: remove unused code Okash Khawaja <okash.khawaja@gmail.com> - 2017-06-01 15:20 +0200

#1655135 — [patch] staging: speakup: remove unused code

FromOkash Khawaja <okash.khawaja@gmail.com>
Date2017-06-01 15:20 +0200
Subject[patch] staging: speakup: remove unused code
Message-ID<tNyb8-32h-27@gated-at.bofh.it>
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>

---
 drivers/staging/speakup/spk_ttyio.c |    3 ---
 1 file changed, 3 deletions(-)

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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web