From: Jiri Slaby Date: Mon, 31 Jul 2023 08:02:41 +0000 (+0200) Subject: speakup: switch to unsigned iterator in spk_ttyio_receive_buf2() X-Git-Tag: v6.6.17~4037^2~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6dc6657d890f5e4b45377e2bba8a437cafd0e750;p=platform%2Fkernel%2Flinux-rpi.git speakup: switch to unsigned iterator in spk_ttyio_receive_buf2() Now, that spk_ttyio_receive_buf2() receives an unsigned count, the iterator can/should be unsigned too. Switch to that to be explicit. Signed-off-by: Jiri Slaby (SUSE) Cc: William Hubbs Cc: Chris Brannon Cc: Kirk Reiser Cc: Samuel Thibault Cc: speakup@linux-speakup.org Link: https://lore.kernel.org/r/20230731080244.2698-8-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/accessibility/speakup/spk_ttyio.c b/drivers/accessibility/speakup/spk_ttyio.c index 07373b3..5d4bafe 100644 --- a/drivers/accessibility/speakup/spk_ttyio.c +++ b/drivers/accessibility/speakup/spk_ttyio.c @@ -79,7 +79,7 @@ static int spk_ttyio_receive_buf2(struct tty_struct *tty, struct spk_synth *synth = ldisc_data->synth; if (synth->read_buff_add) { - int i; + unsigned int i; for (i = 0; i < count; i++) synth->read_buff_add(cp[i]);