commit | d35212f3ca3bf4fb49d15e37f530c9931e2d2183 | [log] [tgz] |
---|---|---|
author | Roland Dreier <roland@purestorage.com> | Mon Jul 16 15:17:10 2012 -0700 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Mon Jul 16 16:42:40 2012 -0700 |
tree | 46860cf1a398eb26ae3ec24802392aa43c79dbbb | |
parent | 3cc5d2a6b9a2fd1bf024aa5e52dd22961eecaf13 [diff] |
target: Clean up returning errors in PR handling code - instead of (PTR_ERR(file) < 0) just use IS_ERR(file) - return -EINVAL instead of EINVAL - all other error returns in target_scsi3_emulate_pr_out() use "goto out" -- get rid of the one remaining straight "return." Signed-off-by: Roland Dreier <roland@purestorage.com> Cc: <stable@vger.kernel.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>