Unverified Commit 4c64d708 authored by Xinghui Li's avatar Xinghui Li Committed by Krzysztof Wilczyński
Browse files

PCI: vmd: Fix inconsistent indentation in vmd_resume()



The if-statement within the vmd_resume() function has an inconsistent
indentation that leads to a compile time warning.

Thus, correct the inconsistent indentation.  While at it, remove the
if-statement completely, which will make the code simpler.

This was detected by Smatch:

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

No functional changes are intended.

[kwilczynski: use correct tags, commit log]
Suggested-by: default avatarChristoph Hellwig <hch@infradead.org>
Link: https://lore.kernel.org/linux-pci/20230627113808.269716-1-korantwork@gmail.com


Reported-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarXinghui Li <korantli@tencent.com>
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
parent 0bb80ecc
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1078,10 +1078,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,