mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Cleanup
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user