]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/ata/ahci.c
dm: scsi: Adjust return value of scsi_exec()
[people/ms/u-boot.git] / drivers / ata / ahci.c
index 5a20b97c4b8469f23942e2acd8cec994823df567..3528a1f3da3174c091968a75b16caf0e92bd7c8f 100644 (file)
@@ -960,14 +960,14 @@ static int ahci_scsi_exec(struct udevice *dev, struct scsi_cmd *pccb)
                break;
        default:
                printf("Unsupport SCSI command 0x%02x\n", pccb->cmd[0]);
-               return false;
+               return -ENOTSUPP;
        }
 
        if (ret) {
                debug("SCSI command 0x%02x ret errno %d\n", pccb->cmd[0], ret);
-               return false;
+               return ret;
        }
-       return true;
+       return 0;
 
 }