]> git.baikalelectronics.ru Git - uboot.git/commit
part: efi: rework the partition start and size in gpt_fill_pte
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 23 Aug 2017 14:01:31 +0000 (16:01 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 3 Sep 2017 15:04:48 +0000 (11:04 -0400)
commitde3c1808954256ba8da7fc1eeacab8370921fa8e
tree57b701f7fe080c49a16f36f78b31b9065cdcc1d6
parent26587b4905b8eb4c4aea6960fba4a43fcd28f3bd
part: efi: rework the partition start and size in gpt_fill_pte

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 <maxime.ripard@free-electrons.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
disk/part_efi.c