PCI: Simplify pcie_capability_clear_and_set_word() control flow
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 24 Aug 2023 18:40:29 +0000 (13:40 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Aug 2023 13:16:10 +0000 (08:16 -0500)
commit294c1e4fa73f545c7e1ac7e90a447c18094b318b
treea20d78be7539633865e39de5c14a7b9ffac5790b
parentda54556695b9ab20cc696827247ffff02254b78d
PCI: Simplify pcie_capability_clear_and_set_word() control flow

Return early for errors in pcie_capability_clear_and_set_word_unlocked()
and pcie_capability_clear_and_set_dword() to simplify the control flow.

No functional change intended.

Link: https://lore.kernel.org/r/20230824193712.542167-13-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/pci/access.c