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:
parent
c30b225dba
commit
abddeb7b12
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue