1
0
Fork 0

backends/native: Remove unneeded NULL check

There seems to be no way to construct this type with an invalid bo.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1762>
This commit is contained in:
Ivan Molodetskikh 2021-07-06 07:42:30 +03:00 committed by Marge Bot
parent f1024564a2
commit 5a0d3ed4dd

View file

@ -227,13 +227,6 @@ meta_drm_buffer_gbm_blit_to_framebuffer (CoglScanout *scanout,
int dmabuf_fd = -1;
uint32_t i;
if (!buffer_gbm->bo)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
"No gbm_bo available");
return FALSE;
}
dmabuf_fd = gbm_bo_get_fd (buffer_gbm->bo);
if (dmabuf_fd == -1)
{