Skip to content

Commit

Permalink
drm: omapdrm: gem: Remove check for impossible condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Tomi Valkeinen committed Dec 31, 2015
1 parent 92b4b44 commit 73d7710
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/omapdrm/omap_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 73d7710

Please sign in to comment.