Author: smh
Date: Sun Dec 21 16:32:57 2014
New Revision: 276016
URL: https://svnweb.freebsd.org/changeset/base/276016

Log:
  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

Modified:
  head/sys/dev/ahci/ahci.c

Modified: head/sys/dev/ahci/ahci.c
==============================================================================
--- head/sys/dev/ahci/ahci.c    Sun Dec 21 16:21:56 2014        (r276015)
+++ head/sys/dev/ahci/ahci.c    Sun Dec 21 16:32:57 2014        (r276016)
@@ -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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to