PCI/MSI: Make error path handling follow the standard pattern
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Apr 2024 14:40:39 +0000 (17:40 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 26 Apr 2024 22:04:20 +0000 (17:04 -0500)
commit0ba5cd94bbc2d21ffb392b6a3b23ee288b4778d5
tree5d7786ff606c1419d24565036be968bb78f4a5e4
parent4cece764965020c22cff7665b18a012006359095
PCI/MSI: Make error path handling follow the standard pattern

Make error path handling follow the standard pattern, i.e.  checking for
errors first. This makes code much easier to read and understand despite
being a bit longer.

Link: https://lore.kernel.org/r/20240426144039.557907-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi/msi.c