]> git.sur5r.net Git - u-boot/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)
commit5276e8b62d958a50e90dc7e8cb8260be597ae51f
tree57b701f7fe080c49a16f36f78b31b9065cdcc1d6
parent89d33a2c0dce785b8c503399db91eec520def249
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