From: Amitoj Kaur Chawla Date: Wed, 24 Feb 2016 15:24:28 +0000 (+0530) Subject: staging: speakup: Remove unnecessary test in if condition X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d6e29ca1f6cf566f67012dce269b5f9ba72a1659;p=linux-beck.git staging: speakup: Remove unnecessary test in if condition Remove unnecessary test on synth->alive since it has already been tested previously. This fixes the following smatch warning: drivers/staging/speakup/synth.c:182 spk_synth_is_alive_restart() warn: we tested 'synth->alive' before and it was 'false' Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c index 01eddab93c66..4f462c35fdd9 100644 --- a/drivers/staging/speakup/synth.c +++ b/drivers/staging/speakup/synth.c @@ -179,7 +179,7 @@ int spk_synth_is_alive_restart(struct spk_synth *synth) { if (synth->alive) return 1; - if (!synth->alive && spk_wait_for_xmitr() > 0) { + if (spk_wait_for_xmitr() > 0) { /* restart */ synth->alive = 1; synth_printf("%s", synth->init);