[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221116092345.19983-1-jiapeng.chong@linux.alibaba.com>
Date: Wed, 16 Nov 2022 17:23:45 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: nirmal.patel@...ux.intel.com
Cc: jonathan.derrick@...ux.dev, lpieralisi@...nel.org, robh@...nel.org,
kw@...ux.com, bhelgaas@...gle.com, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH v2] PCI: vmd: Clean up some inconsistent indenting
No functional modification involved.
drivers/pci/controller/vmd.c:983 vmd_resume() warn: inconsistent
indenting.
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3074
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
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(-)
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
index 98e0746e681c..9bced822d00a 100644
--- a/drivers/pci/controller/vmd.c
+++ b/drivers/pci/controller/vmd.c
@@ -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,
--
2.20.1.7.g153144c
Powered by blists - more mailing lists