[mutter] backends/native: Remove unneeded NULL check
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] backends/native: Remove unneeded NULL check
- Date: Tue, 13 Jul 2021 08:41:55 +0000 (UTC)
commit 5a0d3ed4dd53c41abb3dc86b9b9759423e337ea6
Author: Ivan Molodetskikh <yalterz gmail com>
Date: Tue Jul 6 07:42:30 2021 +0300
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>
src/backends/native/meta-drm-buffer-gbm.c | 7 -------
1 file changed, 7 deletions(-)
---
diff --git a/src/backends/native/meta-drm-buffer-gbm.c b/src/backends/native/meta-drm-buffer-gbm.c
index 6bdc9995a9..5273cb520f 100644
--- a/src/backends/native/meta-drm-buffer-gbm.c
+++ b/src/backends/native/meta-drm-buffer-gbm.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]