diff options
author | Colin Ian King <colin.i.king@googlemail.com> | 2021-11-11 02:33:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-26 19:01:53 +0300 |
commit | 1f8ff525f3d316116892852d5d39eeefa9fcb217 (patch) | |
tree | e85bae30ed1775a91cf98466f2f5cfa904b9c54e /drivers/accessibility/speakup/speakup_dtlk.c | |
parent | b6379e73add8dc56ff2b7e5d88a8dce89a8ace56 (diff) | |
download | linux-1f8ff525f3d316116892852d5d39eeefa9fcb217.tar.xz |
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>
Diffstat (limited to 'drivers/accessibility/speakup/speakup_dtlk.c')
-rw-r--r-- | drivers/accessibility/speakup/speakup_dtlk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accessibility/speakup/speakup_dtlk.c b/drivers/accessibility/speakup/speakup_dtlk.c index 92838d3ae9eb..a9dd5c45d237 100644 --- a/drivers/accessibility/speakup/speakup_dtlk.c +++ b/drivers/accessibility/speakup/speakup_dtlk.c @@ -316,7 +316,7 @@ static struct synth_settings *synth_interrogate(struct spk_synth *synth) static int synth_probe(struct spk_synth *synth) { unsigned int port_val = 0; - int i = 0; + int i; struct synth_settings *sp; pr_info("Probing for DoubleTalk.\n"); |