scsi_command() really return error code in case of error...

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Laurent Vivier 2014-05-08 23:37:16 +02:00
parent 5d0c15c516
commit 6e9f924edb
1 changed files with 3 additions and 1 deletions

View File

@ -82,10 +82,12 @@ int scsi_command(int target, unsigned char* cdb, int count, TIB_t* tib)
}
}
complete:
err = SCSIComplete(&stat, &message, COMPLETION_TIMEOUT);
if (err != noErr)
return err;
return noErr;
complete:
SCSIComplete(&stat, &message, COMPLETION_TIMEOUT);
return err;
}