From 6e9f924edb62009650fd05ab8d766657ec60dd02 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 8 May 2014 23:37:16 +0200 Subject: [PATCH] scsi_command() really return error code in case of error... Signed-off-by: Laurent Vivier --- libscsi/scsi_command.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libscsi/scsi_command.c b/libscsi/scsi_command.c index ae3aeed..0ab0916 100644 --- a/libscsi/scsi_command.c +++ b/libscsi/scsi_command.c @@ -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; }