Skip to content

Commit 4fbd9a4

Browse files
thomasmeydaeinki
authored andcommitted
drm/exynos: Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(.. [1]
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: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
1 parent b767593 commit 4fbd9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/exynos/exynos_drm_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct page **exynos_gem_get_pages(struct drm_gem_object *obj,
122122
__free_page(pages[i]);
123123

124124
drm_free_large(pages);
125-
return ERR_PTR(PTR_ERR(p));
125+
return ERR_CAST(p);
126126
}
127127

128128
static void exynos_gem_put_pages(struct drm_gem_object *obj,

0 commit comments

Comments
 (0)