staging: speakup: speakup_audptr: Remove useless intialisation
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 14 Oct 2015 21:53:35 +0000 (03:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:56:23 +0000 (22:56 -0700)
Remove intialisation of a variable that is immediately reassigned.

The semantic patch used to find this is:

// <smpl>
@@
type T;
identifier x;
constant C;
expression e;
@@

T x
- = C
 ;
x = e;
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/speakup_audptr.c

index ea89e36..a9a6872 100644 (file)
@@ -162,7 +162,7 @@ static void synth_version(struct spk_synth *synth)
 
 static int synth_probe(struct spk_synth *synth)
 {
-       int failed = 0;
+       int failed;
 
        failed = spk_serial_synth_probe(synth);
        if (failed == 0)