Since SAM_STAT_GOOD is 0, it does not change any functionality



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2015-05-02 00:11:22 +00:00
parent a3f8a4eff1
commit 734bd675bd

View File

@@ -360,11 +360,11 @@ static void disk_cmd_done(void *data, char *sense, int result, int resid)
TRACE_DBG("work %p, cmd %p, left %d, result %d, sense %p, resid %d",
work, work->cmd, work->left, result, sense, resid);
work->result = result;
if (result == SAM_STAT_GOOD)
goto out_complete;
work->result = result;
disk_restore_sg(work);
scst_pass_through_cmd_done(work->cmd, sense, result, resid + work->left);
@@ -497,8 +497,7 @@ split:
rc = scst_scsi_exec_async(cmd, &work, disk_cmd_done);
if (unlikely(rc != 0)) {
PRINT_ERROR("scst_scsi_exec_async() failed: %d",
rc);
PRINT_ERROR("scst_scsi_exec_async() failed: %d", rc);
goto out_err_restore;
}