speakup: remove redundant assignment of variable i
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b6379e73ad
commit
1f8ff525f3
@ -247,7 +247,7 @@ static void synth_flush(struct spk_synth *synth)
|
|||||||
static int synth_probe(struct spk_synth *synth)
|
static int synth_probe(struct spk_synth *synth)
|
||||||
{
|
{
|
||||||
unsigned int port_val = 0;
|
unsigned int port_val = 0;
|
||||||
int i = 0;
|
int i;
|
||||||
|
|
||||||
pr_info("Probing for %s.\n", synth->long_name);
|
pr_info("Probing for %s.\n", synth->long_name);
|
||||||
if (port_forced) {
|
if (port_forced) {
|
||||||
|
@ -316,7 +316,7 @@ static struct synth_settings *synth_interrogate(struct spk_synth *synth)
|
|||||||
static int synth_probe(struct spk_synth *synth)
|
static int synth_probe(struct spk_synth *synth)
|
||||||
{
|
{
|
||||||
unsigned int port_val = 0;
|
unsigned int port_val = 0;
|
||||||
int i = 0;
|
int i;
|
||||||
struct synth_settings *sp;
|
struct synth_settings *sp;
|
||||||
|
|
||||||
pr_info("Probing for DoubleTalk.\n");
|
pr_info("Probing for DoubleTalk.\n");
|
||||||
|
@ -254,7 +254,7 @@ static void synth_flush(struct spk_synth *synth)
|
|||||||
static int synth_probe(struct spk_synth *synth)
|
static int synth_probe(struct spk_synth *synth)
|
||||||
{
|
{
|
||||||
unsigned int port_val = 0;
|
unsigned int port_val = 0;
|
||||||
int i = 0;
|
int i;
|
||||||
|
|
||||||
pr_info("Probing for %s.\n", synth->long_name);
|
pr_info("Probing for %s.\n", synth->long_name);
|
||||||
if (port_forced) {
|
if (port_forced) {
|
||||||
|
Reference in New Issue
Block a user