From: Tom Rini Date: Thu, 24 Aug 2017 21:05:11 -0400 Subject: [U-Boot] [PATCH 2/4] part: efi: rework the partition start and size in gpt_fill_pte In-Reply-To: <20170823140133.1506-2-maxime.ripard@free-electrons.com> References: <20170823140133.1506-1-maxime.ripard@free-electrons.com> <20170823140133.1506-2-maxime.ripard@free-electrons.com> Message-ID: <20170825010511.GP17193@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Aug 23, 2017 at 04:01:31PM +0200, Maxime Ripard wrote: > The start variable is only used inside a loop, and is never affected inside > it, so it's a purely local variable. > > In the same way the partition size is accessed several times, so we can > store it in a variable. > > Signed-off-by: Maxime Ripard Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: