monitor-manager-kms: Fix recently introduced build issue

The recent commit 6dd28bd2c7 "poll() on KMS fd on EAGAIN" backported
error handling code that does not apply to the gnome-3-26 branch.

https://bugzilla.gnome.org/show_bug.cgi?id=791024
This commit is contained in:
Benjamin Berg 2017-12-14 20:38:58 +01:00
parent 6dd28bd2c7
commit ae460046ed

View File

@ -1792,11 +1792,7 @@ meta_monitor_manager_kms_wait_for_flip (MetaMonitorManagerKms *manager_kms)
int ret;
if (errno != EAGAIN)
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED,
strerror (errno));
return;
}
return;
pfd.fd = manager_kms->fd;
pfd.events = POLL_IN | POLL_ERR;