linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/omap: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(..
@ 2012-01-22 17:27 Thomas Meyer
  0 siblings, 0 replies; only message in thread
From: Thomas Meyer @ 2012-01-22 17:27 UTC (permalink / raw)
  To: gregkh, devel, linux-kernel

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 <thomas@m3y3r.de>
---

diff -u -p a/drivers/staging/omapdrm/omap_gem_helpers.c b/drivers/staging/omapdrm/omap_gem_helpers.c
--- a/drivers/staging/omapdrm/omap_gem_helpers.c 2012-01-10 08:19:54.879656961 +0100
+++ b/drivers/staging/omapdrm/omap_gem_helpers.c 2012-01-22 09:56:56.915880561 +0100
@@ -84,7 +84,7 @@ fail:
 		page_cache_release(pages[i]);
 	}
 	drm_free_large(pages);
-	return ERR_PTR(PTR_ERR(p));
+	return ERR_CAST(p);
 }
 
 /**

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-22 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-22 17:27 [PATCH] drm/omap: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR( Thomas Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).