style (9) nits
Use return (val); instead of return val; Differential Revision: D838 MFC after: 2 weeks Sponsored by: Multiplay
This commit is contained in:
parent
171af33c53
commit
e4a8f2e2ec
@ -142,7 +142,7 @@ ahci_ctlr_reset(device_t dev)
|
||||
}
|
||||
if (timeout == 0) {
|
||||
device_printf(dev, "AHCI controller reset failure\n");
|
||||
return ENXIO;
|
||||
return (ENXIO);
|
||||
}
|
||||
/* Reenable AHCI mode */
|
||||
ATA_OUTL(ctlr->r_mem, AHCI_GHC, AHCI_GHC_AE);
|
||||
@ -225,7 +225,7 @@ ahci_attach(device_t dev)
|
||||
bus_release_resource(dev, SYS_RES_MEMORY, ctlr->r_rid,
|
||||
ctlr->r_mem);
|
||||
rman_fini(&ctlr->sc_iomem);
|
||||
return ENXIO;
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
ahci_ctlr_setup(dev);
|
||||
@ -236,7 +236,7 @@ ahci_attach(device_t dev)
|
||||
bus_release_resource(dev, SYS_RES_MEMORY, ctlr->r_rid,
|
||||
ctlr->r_mem);
|
||||
rman_fini(&ctlr->sc_iomem);
|
||||
return error;
|
||||
return (error);
|
||||
}
|
||||
|
||||
i = 0;
|
||||
@ -315,7 +315,7 @@ ahci_attach(device_t dev)
|
||||
device_set_ivars(child, (void *)(intptr_t)-1);
|
||||
}
|
||||
bus_generic_attach(dev);
|
||||
return 0;
|
||||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
@ -380,7 +380,7 @@ ahci_setup_interrupt(device_t dev)
|
||||
if (!(ctlr->irqs[i].r_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ,
|
||||
&ctlr->irqs[i].r_irq_rid, RF_SHAREABLE | RF_ACTIVE))) {
|
||||
device_printf(dev, "unable to map interrupt\n");
|
||||
return ENXIO;
|
||||
return (ENXIO);
|
||||
}
|
||||
if ((bus_setup_intr(dev, ctlr->irqs[i].r_irq, ATA_INTR_FLAGS, NULL,
|
||||
(ctlr->irqs[i].mode != AHCI_IRQ_MODE_ONE) ? ahci_intr :
|
||||
@ -389,7 +389,7 @@ ahci_setup_interrupt(device_t dev)
|
||||
&ctlr->irqs[i], &ctlr->irqs[i].handle))) {
|
||||
/* SOS XXX release r_irq */
|
||||
device_printf(dev, "unable to setup interrupt\n");
|
||||
return ENXIO;
|
||||
return (ENXIO);
|
||||
}
|
||||
if (ctlr->numirqs > 1) {
|
||||
bus_describe_intr(dev, ctlr->irqs[i].r_irq,
|
||||
@ -537,7 +537,7 @@ ahci_release_resource(device_t dev, device_t child, int type, int rid,
|
||||
return (0);
|
||||
case SYS_RES_IRQ:
|
||||
if (rid != ATA_IRQ_RID)
|
||||
return ENOENT;
|
||||
return (ENOENT);
|
||||
return (0);
|
||||
}
|
||||
return (EINVAL);
|
||||
|
Loading…
Reference in New Issue
Block a user