CDDA, stop returning error status as a float

It is a bit unorthodox, and we expect a number on how well you can
handle the partition.

Change-Id: Ie1b5d4e0a8e2411f9782957d7f124756f992a086
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3805
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Fredrik Holmqvist 2021-03-18 22:04:57 +01:00
parent b2b83ad10f
commit 29034cf270

View File

@ -1392,7 +1392,7 @@ cdda_identify_partition(int fd, partition_data* partition, void** _cookie)
{
scsi_toc_toc* toc = (scsi_toc_toc*)malloc(2048);
if (toc == NULL)
return B_NO_MEMORY;
return -1;
status_t status = read_table_of_contents(fd, toc, 2048);
@ -1432,7 +1432,7 @@ cdda_identify_partition(int fd, partition_data* partition, void** _cookie)
if (status != B_OK) {
free(toc);
return status;
return -1;
}
*_cookie = toc;