Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp131939rdb; Wed, 20 Dec 2023 08:04:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZcyDY/vnp5f3H+nqwCt4+V3jMTMUuCv+yZ5b+9QqIJVBoIZwdYyLHhIZJwMOCm9vsD624 X-Received: by 2002:a17:903:244a:b0:1d3:d794:8a1f with SMTP id l10-20020a170903244a00b001d3d7948a1fmr4740274pls.11.1703088277065; Wed, 20 Dec 2023 08:04:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703088277; cv=none; d=google.com; s=arc-20160816; b=TMhypjkUb482QjWesJ30C/b4PCpAtpdpOpUwwOe2qZmS+JuMd4N64Xbpo2abCCmTmk Xo2vVWsZo+ZXM2zenp3HVBvyM8VcsSkn05ms10NtcHnt5bNKnOZqJYW9naTD9D4uAlYH 27zqtRPXvL7FH0KJm+TVNYVPchwqOvpi0xT6wtWJrJr3cs3146nvBkC7eLdlZ0E8TQrw ZOm5A+XdI6+m8EkCA0N9URjUgWgDMlib7LM8rorIRGt+3PrKruIRJGcFCmiHN1+KeYmL D/bAIWi0kKRtWa8R7nNyAT15LctdstMrvnhdhkyksca5hnb5ACcxDVnEk1uJidA5hGRE RZpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :cc:to:from:date:dkim-signature; bh=+NldyuY/BxdtLBEewyvEtWy6UnYa/M2HSy8eSghzyg4=; fh=v65ivVdstZf+Ks41TzGsXL7aZ7FQPQp4nvFt0Z6mzGI=; b=RTiF9bqaGLk93IVhMZnTF7/WRRvweqIe2ouv0PI++xEyPMGGFFHAVnzwo9knozALPa v3RrIEMORn65oLy5CBug6BVvdahOKxkvqALQeoOjmUNH5enGyybEhgnKUp+7CqVSb/mB Hyut6nXY/WlOEgdawpYExvqKzhkItApDcMKkNwA4j9HyZXDWi/z7OsV/piE9W5YZqoze JmYHKjPfZR/tqgSozEl1YCkr/SWwLnllgCXdf79PcMhCL0RgYa5Ul/obYkVbYgrCMAZL ZhoasfTYGThmZkfn5Lto+n9JduKPRBDnP8dYE5ggbW0nsIZhIm+W5svwmzd0lrNwNB5w /9dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=se9WbNYU; spf=pass (google.com: domain of linux-kernel+bounces-7239-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7239-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bt11-20020a056a00438b00b006d96a062097si281471pfb.277.2023.12.20.08.04.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 08:04:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7239-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@hugovil.com header.s=x header.b=se9WbNYU; spf=pass (google.com: domain of linux-kernel+bounces-7239-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7239-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 69D872832C7 for ; Wed, 20 Dec 2023 16:04:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D75DE41C97; Wed, 20 Dec 2023 16:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hugovil.com header.i=@hugovil.com header.b="se9WbNYU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.hugovil.com (mail.hugovil.com [162.243.120.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A0CA4645B; Wed, 20 Dec 2023 16:00:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=hugovil.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hugovil.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hugovil.com ; s=x; h=Subject:Content-Transfer-Encoding:Mime-Version:Message-Id:Cc:To:From :Date:subject:date:message-id:reply-to; bh=+NldyuY/BxdtLBEewyvEtWy6UnYa/M2HSy8eSghzyg4=; b=se9WbNYUaP7keWhf5ITLLV+TdY t3zov8YrpzqXyIk+OnFT/y9nmgTTttlnN9kvZp+ocOP/iNDvEHlftX35Tm3+SRKN+jw+xgE+1+dRY mc1mcG9jAEkUg4f7xeXUYip7v36IBAFpHH0Q2iythyfWJ1f9sh81QcdCOSnfjwF1iF30=; Received: from modemcable168.174-80-70.mc.videotron.ca ([70.80.174.168]:51650 helo=pettiford) by mail.hugovil.com with esmtpa (Exim 4.92) (envelope-from ) id 1rFyzy-0006jy-Bc; Wed, 20 Dec 2023 11:00:42 -0500 Date: Wed, 20 Dec 2023 11:00:41 -0500 From: Hugo Villeneuve To: Andy Shevchenko Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, jringle@gridpoint.com, kubakici@wp.pl, phil@raspberrypi.org, bo.svangard@embeddedart.se, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Hugo Villeneuve , stable@vger.kernel.org Message-Id: <20231220110041.23ed3c4e97a61d102c6b1e24@hugovil.com> In-Reply-To: References: <20231219171903.3530985-1-hugo@hugovil.com> <20231219171903.3530985-5-hugo@hugovil.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 70.80.174.168 X-SA-Exim-Mail-From: hugo@hugovil.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -0.0 T_SCC_BODY_TEXT_LINE No description available. * -1.4 NICE_REPLY_A Looks like a legit reply (A) Subject: Re: [PATCH 04/18] serial: sc16is7xx: improve do/while loop in sc16is7xx_irq() X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on mail.hugovil.com) On Wed, 20 Dec 2023 17:42:42 +0200 Andy Shevchenko wrote: > On Tue, Dec 19, 2023 at 12:18:48PM -0500, Hugo Villeneuve wrote: > > From: Hugo Villeneuve > > > > Simplify and improve readability by replacing while(1) loop with > > do {} while, and by using the keep_polling variable as the exit > > condition, making it more explicit. > > ... > > > + bool keep_polling; > > > + > > Stray blank line. Otherwise LGTM. Yes, and I just realized I should also change: do { keep_polling = false; int i; ... to: do { int i; keep_polling = false; ... Hugo Villeneuve