* [PATCH v2] PCI: vmd: Clean up some inconsistent indenting
@ 2022-11-16 9:23 Jiapeng Chong
0 siblings, 0 replies; only message in thread
From: Jiapeng Chong @ 2022-11-16 9:23 UTC (permalink / raw)
To: nirmal.patel
Cc: jonathan.derrick, lpieralisi, robh, kw, bhelgaas, linux-pci,
linux-kernel, Jiapeng Chong, Abaci Robot
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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-16 9:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-16 9:23 [PATCH v2] PCI: vmd: Clean up some inconsistent indenting Jiapeng Chong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox