PCI/ERR: Cleanup misleading indentation inside if conditions
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 29 Apr 2024 09:47:06 +0000 (12:47 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 29 Apr 2024 15:33:29 +0000 (10:33 -0500)
A few if conditions align misleadingly with the following code block.  The
checks are really cascading NULL checks that fit into 80 chars so remove
newlines in between and realign to the if condition indent.

Link: https://lore.kernel.org/r/20240429094707.2529-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/err.c

index 705893b5f7b09babb7ff2b003dd49d74f408f0fe..31090770fffcc94e15ba6e89f649c6f84bfdf0d5 100644 (file)
@@ -116,9 +116,7 @@ static int report_mmio_enabled(struct pci_dev *dev, void *data)
 
        device_lock(&dev->dev);
        pdrv = dev->driver;
-       if (!pdrv ||
-               !pdrv->err_handler ||
-               !pdrv->err_handler->mmio_enabled)
+       if (!pdrv || !pdrv->err_handler || !pdrv->err_handler->mmio_enabled)
                goto out;
 
        err_handler = pdrv->err_handler;
@@ -137,9 +135,7 @@ static int report_slot_reset(struct pci_dev *dev, void *data)
 
        device_lock(&dev->dev);
        pdrv = dev->driver;
-       if (!pdrv ||
-               !pdrv->err_handler ||
-               !pdrv->err_handler->slot_reset)
+       if (!pdrv || !pdrv->err_handler || !pdrv->err_handler->slot_reset)
                goto out;
 
        err_handler = pdrv->err_handler;
@@ -158,9 +154,7 @@ static int report_resume(struct pci_dev *dev, void *data)
        device_lock(&dev->dev);
        pdrv = dev->driver;
        if (!pci_dev_set_io_state(dev, pci_channel_io_normal) ||
-               !pdrv ||
-               !pdrv->err_handler ||
-               !pdrv->err_handler->resume)
+           !pdrv || !pdrv->err_handler || !pdrv->err_handler->resume)
                goto out;
 
        err_handler = pdrv->err_handler;