drm/vram: Unconditonally set BO call-back functions

The statement's condition is always true.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911110910.30698-5-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann 2019-09-11 13:09:10 +02:00
parent c30b225dba
commit abddeb7b12
1 changed files with 1 additions and 2 deletions

View File

@ -93,7 +93,6 @@ static int drm_gem_vram_init(struct drm_device *dev,
int ret; int ret;
size_t acc_size; size_t acc_size;
if (!gbo->bo.base.funcs)
gbo->bo.base.funcs = &drm_gem_vram_object_funcs; gbo->bo.base.funcs = &drm_gem_vram_object_funcs;
ret = drm_gem_object_init(dev, &gbo->bo.base, size); ret = drm_gem_object_init(dev, &gbo->bo.base, size);