mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Return the error from ahci_setup_interrupt in ahci_attach
Previously ahci_attach returned a hard coded ENXIO instead of the value from ahci_setup_interrupt. This is effectively a NOOP change as currently ahci_setup_interrupt only ever returns 0 or ENXIO, so just there to protect against any future changes to that. Differential Revision: D838 MFC after: 2 weeks Sponsored by: Multiplay
This commit is contained in:
parent
2fe8c9e132
commit
5f59ea478e
1 changed files with 2 additions and 2 deletions
|
|
@ -231,12 +231,12 @@ ahci_attach(device_t dev)
|
|||
ahci_ctlr_setup(dev);
|
||||
|
||||
/* Setup interrupts. */
|
||||
if (ahci_setup_interrupt(dev)) {
|
||||
if ((error = ahci_setup_interrupt(dev)) != 0) {
|
||||
bus_dma_tag_destroy(ctlr->dma_tag);
|
||||
bus_release_resource(dev, SYS_RES_MEMORY, ctlr->r_rid,
|
||||
ctlr->r_mem);
|
||||
rman_fini(&ctlr->sc_iomem);
|
||||
return ENXIO;
|
||||
return error;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue