diff options
author | Pali Rohár <pali@kernel.org> | 2021-07-08 21:18:59 +0300 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-07-15 11:53:05 +0300 |
commit | cbd7ef70bc6523474cca6480364c6248a8e5b5d7 (patch) | |
tree | 5eb38d0550c71508ec00fe571a20c9e25f730478 /drivers/pci | |
parent | a83149509131b3c5cd1811f953cf96c213308eef (diff) | |
download | u-boot-cbd7ef70bc6523474cca6480364c6248a8e5b5d7.tar.xz |
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>
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions