From: Roland Dreier Date: Mon, 16 Jul 2012 22:17:10 +0000 (-0700) Subject: target: Clean up returning errors in PR handling code X-Git-Tag: v3.2.24~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6154c5bc1f1c0e02dd41bd96300c63e137bdee51;p=pandora-kernel.git target: Clean up returning errors in PR handling code commit d35212f3ca3bf4fb49d15e37f530c9931e2d2183 upstream. - 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 Signed-off-by: Nicholas Bellinger Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed