mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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:
parent
f1024564a2
commit
5a0d3ed4dd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user