diff options
author | Krzysztof Wilczyński <kw@linux.com> | 2021-07-01 23:44:01 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-08-31 22:54:33 +0300 |
commit | 30492c12d2324e8bc9a35ef3f3c1d92a5bd7753d (patch) | |
tree | 6e3fa1edbcc73573250aeafc933a734fb0b8bff6 /drivers/pci/controller/pci-versatile.c | |
parent | ee6f85683e859728eba6cbca6ed338fb608286b3 (diff) | |
download | linux-30492c12d2324e8bc9a35ef3f3c1d92a5bd7753d.tar.xz |
PCI: artpec6: Remove local code block from switch statement
The switch statement in the artpec6_pcie_probe() has a local code block
where "val" is defined and immediately used by the artpec6_pcie_readl().
This extra code block adds brackets at the same indentation level as the
switch statement itself which can hinder readability of the code.
Move the "val" declaration to the top of the function and remove
the extra code block from the switch statement.
Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20210701204401.1636562-2-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'drivers/pci/controller/pci-versatile.c')
0 files changed, 0 insertions, 0 deletions