summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ahci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c
index 9a9f896..d88274a 100644
--- a/sys/dev/ic/ahci.c
+++ b/sys/dev/ic/ahci.c
@@ -363,9 +363,8 @@ hba_port_reset(struct ahci_hba *hba, struct hba_port *port)
det = AHCI_PXSCTL_DET(ssts);
ipm = AHCI_PXSSTS_IPM(ssts);
- /* If there is no device, fake success */
if (det == AHCI_DET_NULL) {
- return 0;
+ return -ENODEV;
}
if (det != AHCI_DET_COMM) {