modesetting/drmmode: Remove unused flink call

We don't use flink in the GetFB import path anymore, as we do an
FD-based import instead.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Daniel Stone 2018-03-23 13:50:23 +00:00 committed by Adam Jackson
parent be087778a0
commit 7004a7c3c9

View File

@ -1064,7 +1064,6 @@ create_pixmap_for_fbcon(drmmode_ptr drmmode, ScrnInfoPtr pScrn, int fbcon_id)
{
PixmapPtr pixmap = drmmode->fbcon_pixmap;
drmModeFBPtr fbcon;
struct drm_gem_flink flink;
ScreenPtr pScreen = xf86ScrnToScreen(pScrn);
Bool ret;
@ -1080,12 +1079,6 @@ create_pixmap_for_fbcon(drmmode_ptr drmmode, ScrnInfoPtr pScrn, int fbcon_id)
fbcon->height != pScrn->virtualY)
goto out_free_fb;
flink.handle = fbcon->handle;
if (ioctl(drmmode->fd, DRM_IOCTL_GEM_FLINK, &flink) < 0) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Couldn't flink fbcon handle\n");
goto out_free_fb;
}
pixmap = drmmode_create_pixmap_header(pScreen, fbcon->width,
fbcon->height, fbcon->depth,
fbcon->bpp, fbcon->pitch, NULL);