Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Laurent Pinchart and committed by
Tomi Valkeinen
73d77107 92b4b445

-3
-3
drivers/gpu/drm/omapdrm/omap_gem.c
··· 218 218 enum tiler_fmt fmt = gem2fmt(omap_obj->flags); 219 219 int i; 220 220 221 - if (!priv->usergart) 222 - return; 223 - 224 221 for (i = 0; i < NUM_USERGART_ENTRIES; i++) { 225 222 struct omap_drm_usergart_entry *entry = 226 223 &priv->usergart[fmt].entry[i];