Commit abddeb7b authored by Thomas Zimmermann's avatar Thomas Zimmermann

drm/vram: Unconditonally set BO call-back functions

The statement's condition is always true.
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911110910.30698-5-tzimmermann@suse.de
parent c30b225d
......@@ -93,8 +93,7 @@ static int drm_gem_vram_init(struct drm_device *dev,
int ret;
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);
if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment