Skip to content

Commit

Permalink
staging: drm/omap: Use ERR_CAST inlined function instead of ERR_PTR(P…
Browse files Browse the repository at this point in the history
…TR_ERR(..

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>
  • Loading branch information
Thomas Meyer authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent aa2f92a commit 37fe58b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/omapdrm/omap_gem_helpers.c
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ struct page ** _drm_gem_get_pages(struct drm_gem_object *obj, gfp_t gfpmask)
page_cache_release(pages[i]);
}
drm_free_large(pages);
return ERR_PTR(PTR_ERR(p));
return ERR_CAST(p);
}

/**

0 comments on commit 37fe58b

Please sign in to comment.