speakup_audptr: cleanup synth_version
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 6 Feb 2022 02:38:45 +0000 (03:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Feb 2022 11:14:27 +0000 (12:14 +0100)
commit353b940c90d2b30ccdab17c1501883daf76b1afe
tree9fa2860ef89733ce0cfcccf38629df8ce7d5d457
parent9583e4ee493335f1d8d11fb1158d7ddc819f99b3
speakup_audptr: cleanup synth_version

The buffer was bigger than necessary, and the while loop not very
canonical. Also better use i as variable name for an index.

Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20220206023845.bpzxtjohekclffra@begin
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/accessibility/speakup/speakup_audptr.c