]> git.baikalelectronics.ru Git - kernel.git/commit
target: Clean up returning errors in PR handling code
authorRoland Dreier <roland@purestorage.com>
Mon, 16 Jul 2012 22:17:10 +0000 (15:17 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 16 Jul 2012 23:42:40 +0000 (16:42 -0700)
commit99495cd2defd4bb411a9f861f7674dd52559eb4e
tree46860cf1a398eb26ae3ec24802392aa43c79dbbb
parenta3982a9fd17ddac7ad4b4862f6b3f9b9dfb0c77b
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>
drivers/target/target_core_pr.c