speakup: remove redundant assignment of variable i
authorColin Ian King <colin.i.king@googlemail.com>
Wed, 10 Nov 2021 23:33:42 +0000 (23:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 16:01:53 +0000 (17:01 +0100)
The variable i is being initialized a value that is never read, it is
re-assigned later on in a for-loop.  The assignment is redundant and
can be removed.

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20211110233342.1372516-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/accessibility/speakup/speakup_acntpc.c
drivers/accessibility/speakup/speakup_dtlk.c
drivers/accessibility/speakup/speakup_keypc.c

index c1ec087dca1307f8934942ac4a8f13103ab746f3..023172ca22efa1ddc2fcaa13b3ffe3ae6973aa3a 100644 (file)
@@ -247,7 +247,7 @@ static void synth_flush(struct spk_synth *synth)
 static int synth_probe(struct spk_synth *synth)
 {
        unsigned int port_val = 0;
-       int i = 0;
+       int i;
 
        pr_info("Probing for %s.\n", synth->long_name);
        if (port_forced) {
index 92838d3ae9eb8d3462f8f33ee0525b14fd7d7e63..a9dd5c45d237465367b8f22c63816c64f459f19d 100644 (file)
@@ -316,7 +316,7 @@ static struct synth_settings *synth_interrogate(struct spk_synth *synth)
 static int synth_probe(struct spk_synth *synth)
 {
        unsigned int port_val = 0;
-       int i = 0;
+       int i;
        struct synth_settings *sp;
 
        pr_info("Probing for DoubleTalk.\n");
index 311f4aa0be22d6bc62f8e53e36580025ad6ef66a..1618be87bff1a513d135d49812c392366f06aa3e 100644 (file)
@@ -254,7 +254,7 @@ static void synth_flush(struct spk_synth *synth)
 static int synth_probe(struct spk_synth *synth)
 {
        unsigned int port_val = 0;
-       int i = 0;
+       int i;
 
        pr_info("Probing for %s.\n", synth->long_name);
        if (port_forced) {