Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312078
b: refs/heads/master
c: d35212f
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier authored and Nicholas Bellinger committed Jul 16, 2012
1 parent 86984a0 commit d5cbb3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3cc5d2a6b9a2fd1bf024aa5e52dd22961eecaf13
refs/heads/master: d35212f3ca3bf4fb49d15e37f530c9931e2d2183
7 changes: 4 additions & 3 deletions trunk/drivers/target/target_core_pr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ static int __core_scsi3_write_aptpl_to_file(
if (IS_ERR(file) || !file || !file->f_dentry) {
pr_err("filp_open(%s) for APTPL metadata"
" failed\n", path);
return (PTR_ERR(file) < 0 ? PTR_ERR(file) : -ENOENT);
return IS_ERR(file) ? PTR_ERR(file) : -ENOENT;
}

iov[0].iov_base = &buf[0];
Expand Down Expand Up @@ -3818,7 +3818,7 @@ int target_scsi3_emulate_pr_out(struct se_cmd *cmd)
" SPC-2 reservation is held, returning"
" RESERVATION_CONFLICT\n");
cmd->scsi_sense_reason = TCM_RESERVATION_CONFLICT;
ret = EINVAL;
ret = -EINVAL;
goto out;
}

Expand All @@ -3828,7 +3828,8 @@ int target_scsi3_emulate_pr_out(struct se_cmd *cmd)
*/
if (!cmd->se_sess) {
cmd->scsi_sense_reason = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE;
return -EINVAL;
ret = -EINVAL;
goto out;
}

if (cmd->data_length < 24) {
Expand Down

0 comments on commit d5cbb3e

Please sign in to comment.