Skip to contentSkip to conversation

PCI: vmd: Clean up some inconsistent indenting

PATCH New Jiapeng Chong 1 participant 1 message Nov 16, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 PCI: vmd: Clean up some inconsistent indenting

No functional modification involved.

drivers/pci/controller/vmd.c:983 vmd_resume() warn: inconsistent indenting.

---
Changs in v2:
-Simplify if else statements to vmd_set_msi_remapping(vmd, !!vmd->irq_domain).

 drivers/pci/controller/vmd.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/pci/controller/vmd.c +1 -4
index 98e0746e681c..9bced822d00a 100644
@@ -980,10 +980,7 @@ static int vmd_resume(struct device *dev)
 	struct vmd_dev *vmd = pci_get_drvdata(pdev);
 	int err, i;
 
-       if (vmd->irq_domain)
-               vmd_set_msi_remapping(vmd, true);
-       else
-               vmd_set_msi_remapping(vmd, false);
+	vmd_set_msi_remapping(vmd, !!vmd->irq_domain);
 
 	for (i = 0; i < vmd->msix_count; i++) {
 		err = devm_request_irq(dev, vmd->irqs[i].virq,
Signature · 1 line
2.20.1.7.g153144c