]> git.baikalelectronics.ru Git - uboot.git/commit
arm: a37xx: pci: Optimize a3700_fdt_fix_pcie_regions() when fixup offset is zero
authorPali Rohár <pali@kernel.org>
Thu, 8 Jul 2021 18:18:59 +0000 (20:18 +0200)
committerStefan Roese <sr@denx.de>
Thu, 15 Jul 2021 08:53:05 +0000 (10:53 +0200)
commit22b6a325a9eca8490e95a051ccfa05d6ea3986eb
tree5eb38d0550c71508ec00fe571a20c9e25f730478
parentdb2d734715d4d723ad9dfe46a175d4c666cb9200
arm: a37xx: pci: Optimize a3700_fdt_fix_pcie_regions() when fixup offset is zero

If fixup offset is zero then there is nothing to fix. All calculation in
this case just increase addresses by value zero which results in identity.
So in this case skip whole fixup re-calculation as it is not needed.

This is just an optimization for special case when fix_offset is zero which
skips code path which does only identity operations (meaning nothing). No
functional changes.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Konstantin Porotchkin <kostap@marvell.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/armada3700/cpu.c