drivers/pci/msi.c: fix a check after use
PATCH 1/1 drivers/pci/msi.c: fix a check after use
This patch fixes a check after use found by the Coverity checker.
Signed-off-by Adrian Bunk <[email protected]>
drivers/pci/msi.c renamed from drivers/pci/msi.c.old +3 -1
@@ -703,12 +703,14 @@**/ int pci_enable_msi (struct pci_dev * dev) { -int pos, temp = dev->irq, status = -EINVAL ; +int pos, temp, status = -EINVAL ;u16 control;if (!pci_msi_enable || !dev)return status; + temp = dev->irq; +if ((status =msi_init ()) <0 )return status;
Greg KH
AppliedQuoted 3 lines · Adrian Bunk
This patch fixes a check after use found by the Coverity checker.
Signed-off-by Adrian Bunk <[email protected]>
Applied, thanks.
greg k-h