From nobody Mon Feb 9 10:24:24 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 755B4C001DC for ; Mon, 31 Jul 2023 08:06:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231858AbjGaIGH (ORCPT ); Mon, 31 Jul 2023 04:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjGaIE2 (ORCPT ); Mon, 31 Jul 2023 04:04:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C01331723; Mon, 31 Jul 2023 01:03:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4F2D560F88; Mon, 31 Jul 2023 08:03:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC12AC433CA; Mon, 31 Jul 2023 08:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690790581; bh=C858cK3IVRNBXL+ZU9kIJwJE3Aayva8V0BpdDOTGA+U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PSfKM7Y/XKWiZVda4hE1vXwfE+9O+P0VIbGOboHfp4xgihTCSrGVI4zJe5XSnwP9l tEptjpG8SKH9dHic4SLTjn/T6KHZwyf3pyTkYOJ17uvlDioTO56Y5OvTNBp5ABR+Wj g/aEJi016EWFYE/3uZmMMMpMXEEm/nMocfVkpHwow8Gc0tDMMFhAIhifHh+MyjOAx2 5MBUNM0hIEmYo1nk0kIhR3xfALs2MRtL/+NU19GOUirBuDCjEO87e+3wXSUFkZhmdF 82cJxPIGL32qt7673QP27eE+NAEfG3LDayJNdOXWNiiG2h8yhomvqIp3RdjHIw/gx8 kRCnoPP+BTAKg== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , speakup@linux-speakup.org Subject: [PATCH 07/10] speakup: switch to unsigned iterator in spk_ttyio_receive_buf2() Date: Mon, 31 Jul 2023 10:02:41 +0200 Message-ID: <20230731080244.2698-8-jirislaby@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230731080244.2698-1-jirislaby@kernel.org> References: <20230731080244.2698-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- drivers/accessibility/speakup/spk_ttyio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accessibility/speakup/spk_ttyio.c b/drivers/accessibil= ity/speakup/spk_ttyio.c index 07373b3debd1..5d4bafe118ec 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 =3D ldisc_data->synth; =20 if (synth->read_buff_add) { - int i; + unsigned int i; =20 for (i =3D 0; i < count; i++) synth->read_buff_add(cp[i]); --=20 2.41.0