From e365138a2bdbe770d810b8e120a67baf9246e265 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 20 Apr 2020 18:45:23 -0400 Subject: [PATCH] e_pixmap: No need for this variable here We only ever used this var Once in this func... --- src/bin/e_pixmap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 202dd240b..46af74cfb 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -559,7 +559,6 @@ e_pixmap_refresh(E_Pixmap *cp) #ifdef HAVE_WAYLAND { E_Comp_Wl_Buffer *buffer = cp->buffer; - struct wl_shm_buffer *shm_buffer; int format; cp->w = cp->h = 0; @@ -567,11 +566,10 @@ e_pixmap_refresh(E_Pixmap *cp) if (!buffer) return EINA_FALSE; - shm_buffer = buffer->shm_buffer; cp->w = buffer->w; cp->h = buffer->h; - if (shm_buffer) + if (buffer->shm_buffer) format = wl_shm_buffer_get_format(shm_buffer); else if (buffer->dmabuf_buffer) format = buffer->dmabuf_buffer->attributes.format;