summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_gem.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-12-14 22:39:42 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-12-31 11:25:46 +0200
commit73d77107b8e5eba57e831b414de7eeb75a719646 (patch)
treef076c0ff68e6fdb4d8984e60869d29c597e40b80 /drivers/gpu/drm/omapdrm/omap_gem.c
parent92b4b44538a034495fc598f61cc95f4e647adbd1 (diff)
downloadtalos-op-linux-73d77107b8e5eba57e831b414de7eeb75a719646.tar.gz
talos-op-linux-73d77107b8e5eba57e831b414de7eeb75a719646.zip
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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_gem.c3
1 files changed, 0 insertions, 3 deletions
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];
OpenPOWER on IntegriCloud