mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-07 15:15:29 +00:00
vmwgfx: Remove dmabuf check in present ioctl
Doesn't protect any error code and only gets in the way of debugging. Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ebd4c6f626
commit
ef5ab24bd3
1 changed files with 0 additions and 6 deletions
|
@ -172,13 +172,7 @@ int vmw_present_ioctl(struct drm_device *dev, void *data,
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto out_no_fb;
|
goto out_no_fb;
|
||||||
}
|
}
|
||||||
|
|
||||||
vfb = vmw_framebuffer_to_vfb(obj_to_fb(obj));
|
vfb = vmw_framebuffer_to_vfb(obj_to_fb(obj));
|
||||||
if (!vfb->dmabuf) {
|
|
||||||
DRM_ERROR("Framebuffer not dmabuf backed.\n");
|
|
||||||
ret = -EINVAL;
|
|
||||||
goto out_no_fb;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = ttm_read_lock(&vmaster->lock, true);
|
ret = ttm_read_lock(&vmaster->lock, true);
|
||||||
if (unlikely(ret != 0))
|
if (unlikely(ret != 0))
|
||||||
|
|
Loading…
Add table
Reference in a new issue