Files
ubports_kernel_google_msm/fs/btrfs
Julia Lawall d0b678cb0a 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/)

// <smpl>
@@
type T;
T x;
identifier f;
@@

T f (...) { <+...
- ERR_PTR(PTR_ERR(x))
+ x
 ...+> }

@@
expression x;
@@

- ERR_PTR(PTR_ERR(x))
+ ERR_CAST(x)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2010-10-29 15:14:23 -04:00
..
2010-10-29 09:26:29 -04:00
2010-03-15 10:58:13 -04:00
2008-09-25 11:04:06 -04:00
2010-10-29 15:14:23 -04:00
2010-10-29 15:14:18 -04:00
2010-03-16 14:24:27 -04:00
2010-10-29 15:14:23 -04:00
2010-05-21 18:31:18 -04:00