[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250417115231.3e5771ad@endymion>
Date: Thu, 17 Apr 2025 11:52:37 +0200
From: Jean Delvare <jdelvare@...e.de>
To: Andrew Jeffery <andrew@...econstruct.com.au>
Cc: Joel Stanley <joel@....id.au>, Henry Martin <bsdhenrymartin@...il.com>,
Patrick Rudolph <patrick.rudolph@...ements.com>, Andrew Geissler
<geissonator@...oo.com>, Ninad Palsule <ninad@...ux.ibm.com>, Patrick
Venture <venture@...gle.com>, Robert Lippert <roblip@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 6/7] soc: aspeed: lpc-snoop: Rearrange channel paths
On Fri, 11 Apr 2025 10:38:36 +0930, Andrew Jeffery wrote:
> Order assignments such that tests for conditions not involving resource
> acquisition are ordered before those testing acquired resources, and
> order managed resource acquisition before unmanaged where possible. This
> way we minimise the amount of manual cleanup required.
>
> In the process, improve readability of the code by introducing a channel
> pointer that takes the place of the repeated object lookups.
>
> Signed-off-by: Andrew Jeffery <andrew@...econstruct.com.au>
> ---
> drivers/soc/aspeed/aspeed-lpc-snoop.c | 47 ++++++++++++++++++++---------------
> 1 file changed, 27 insertions(+), 20 deletions(-)
> (...)
LGTM.
Acked-by: Jean Delvare <jdelvare@...e.de>
--
Jean Delvare
SUSE L3 Support
Powered by blists - more mailing lists