Re: [PATCH v2 3/5] gpio: rtd1625: Narrow variable scope in loops

Andy Shevchenko <[email protected]>
Newsgroups org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Fri, Aug 14, 2026 at 10:56:55AM +0800, Yu-Chun Lin wrote:
> Declare 'i' inside the for-loop header and 'hwirq' within the inner block
> where it's used to reduce variable visibility.

Sounds like it also can be split to two.

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.