From: Laurent Pinchart Date: Mon, 14 Dec 2015 20:39:42 +0000 (+0200) Subject: drm: omapdrm: gem: Remove check for impossible condition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73d77107b8e5eba57e831b414de7eeb75a719646;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm: omapdrm: gem: Remove check for impossible condition The GEM object can't be tiled without a usergart as that condition is checked and considered as an error when creating the GEM object. Signed-off-by: Laurent Pinchart Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index a589685ec63d..984462622291 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c @@ -218,9 +218,6 @@ static void evict(struct drm_gem_object *obj) enum tiler_fmt fmt = gem2fmt(omap_obj->flags); int i; - if (!priv->usergart) - return; - for (i = 0; i < NUM_USERGART_ENTRIES; i++) { struct omap_drm_usergart_entry *entry = &priv->usergart[fmt].entry[i];