From: Amitoj Kaur Chawla Date: Wed, 14 Oct 2015 21:53:35 +0000 (+0530) Subject: staging: speakup: speakup_audptr: Remove useless intialisation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b5186a9fd2ff333693034cd0d24590dd0bc34ea7;p=linux-beck.git staging: speakup: speakup_audptr: Remove useless intialisation Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/speakup_audptr.c b/drivers/staging/speakup/speakup_audptr.c index ea89e36ecd0d..a9a687232955 100644 --- a/drivers/staging/speakup/speakup_audptr.c +++ b/drivers/staging/speakup/speakup_audptr.c @@ -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)