staging: drm/omap: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(..
authorThomas Meyer <thomas@m3y3r.de>
Sun, 22 Jan 2012 17:27:21 +0000 (18:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
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 <thomas@m3y3r.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_gem_helpers.c

index 29275c7209e91b5693cb137985da57c8b2159a30..f895363a5e54f0a64e3e02dd3db39c85725a16cc 100644 (file)
@@ -84,7 +84,7 @@ fail:
                page_cache_release(pages[i]);
        }
        drm_free_large(pages);
-       return ERR_PTR(PTR_ERR(p));
+       return ERR_CAST(p);
 }
 
 /**