Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6e29ca1 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman
Browse files

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: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cd95ed98
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -179,7 +179,7 @@ int spk_synth_is_alive_restart(struct spk_synth *synth)
{
{
	if (synth->alive)
	if (synth->alive)
		return 1;
		return 1;
	if (!synth->alive && spk_wait_for_xmitr() > 0) {
	if (spk_wait_for_xmitr() > 0) {
		/* restart */
		/* restart */
		synth->alive = 1;
		synth->alive = 1;
		synth_printf("%s", synth->init);
		synth_printf("%s", synth->init);