projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2f92a
)
staging: drm/omap: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(..
author
Thomas Meyer
<
[email protected]
>
Sun, 22 Jan 2012 17:27:21 +0000
(18:27 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 9 Feb 2012 17:41:34 +0000
(09:41 -0800)
The semantic patch that makes this change is available
in scripts/coccinelle/api/err_cast.cocci.
More information about semantic patching is available at
http://coccinelle.lip6.fr/
Signed-off-by: Thomas Meyer <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/omapdrm/omap_gem_helpers.c
patch
|
blob
|
history
diff --git
a/drivers/staging/omapdrm/omap_gem_helpers.c
b/drivers/staging/omapdrm/omap_gem_helpers.c
index 29275c7209e91b5693cb137985da57c8b2159a30..f895363a5e54f0a64e3e02dd3db39c85725a16cc 100644
(file)
--- a/
drivers/staging/omapdrm/omap_gem_helpers.c
+++ b/
drivers/staging/omapdrm/omap_gem_helpers.c
@@
-84,7
+84,7
@@
fail:
page_cache_release(pages[i]);
}
drm_free_large(pages);
- return ERR_
PTR(PTR_ERR(p)
);
+ return ERR_
CAST(p
);
}
/**