We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d97ab9e + 4c64d70 commit a4179c6Copy full SHA for a4179c6
1 file changed
drivers/pci/controller/vmd.c
@@ -1077,10 +1077,7 @@ static int vmd_resume(struct device *dev)
1077
struct vmd_dev *vmd = pci_get_drvdata(pdev);
1078
int err, i;
1079
1080
- if (vmd->irq_domain)
1081
- vmd_set_msi_remapping(vmd, true);
1082
- else
1083
- vmd_set_msi_remapping(vmd, false);
+ vmd_set_msi_remapping(vmd, !!vmd->irq_domain);
1084
1085
for (i = 0; i < vmd->msix_count; i++) {
1086
err = devm_request_irq(dev, vmd->irqs[i].virq,
0 commit comments