From: Julia Lawall Date: Fri, 29 Oct 2010 19:14:23 +0000 (-0400) Subject: Btrfs: Use ERR_CAST helpers X-Git-Tag: v2.6.37-rc1~19^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0b678cb0a26783ab7238784f1e7e608e5caafa3;p=pandora-kernel.git Btrfs: Use ERR_CAST helpers Use ERR_CAST(x) rather than ERR_PTR(PTR_ERR(x)). The former makes more clear what is the purpose of the operation, which otherwise looks like a no-op. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ type T; T x; identifier f; @@ T f (...) { <+... - ERR_PTR(PTR_ERR(x)) + x ...+> } @@ expression x; @@ - ERR_PTR(PTR_ERR(x)) + ERR_CAST(x) // Signed-off-by: Julia Lawall Cc: Chris Mason Signed-off-by: Andrew Morton Signed-off-by: Chris Mason --- Reading git-diff-tree failed