On Thu, Mar 07, 2024 at 02:54:42PM +0100, Heiko Carstens wrote: > On Mon, Mar 04, 2024 at 04:43:18PM +0200, Andy Shevchenko wrote: > > On Thu, Feb 22, 2024 at 03:45:01PM +0200, Andy Shevchenko wrote: > > > Use more natural while (i--) patter to clean up allocated resources. > > > > Any comments? > > It is up to Vineeth and Peter to decide what to do with this. > > But in general I'm not a fan of such patches. It depends on what people > prefer, and you can send literally thousands of similar patches where the > code looks "more natural" afterwards. I understand your point, however, the lesser characters to parse, the better readability is (usually). At least the proposed pattern is mainly used in the kernel (you may grep for different patterns). It also has an educational effect in case somebody takes this code as an example (for whatever reason). With this we will show that *in practice* kernel prefers this style over others. -- With Best Regards, Andy Shevchenko