Commit 7d614ab2 authored by Tian Tao's avatar Tian Tao Committed by Lucas Stach
Browse files

drm/etnaviv: fix NULL check before some freeing functions is not needed



fixed the below warning:
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c:84:2-8: WARNING: NULL check
before some freeing functions is not needed.

Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 03a27539
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ static void etnaviv_gem_prime_release(struct etnaviv_gem_object *etnaviv_obj)
	/* Don't drop the pages for imported dmabuf, as they are not
	 * ours, just free the array we allocated:
	 */
	if (etnaviv_obj->pages)
	kvfree(etnaviv_obj->pages);

	drm_prime_gem_destroy(&etnaviv_obj->base, etnaviv_obj->sgt);