[Mesa-dev] [PATCH] st/mesa: fix the unconditional return in st_framebuffer_iface_remove

Charmaine Lee charmainel at vmware.com
Tue Jul 25 00:00:40 UTC 2017


Fixes: bbc29393d3beaf6344c7188547b4ff61b63946ae
Tested-by: Christoph Haag <haagch at frickel.club>
---
 src/mesa/state_tracker/st_manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index 834bcc9..6447403 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -560,7 +560,7 @@ st_framebuffer_iface_remove(struct st_manager *smapi,
       (struct st_manager_private *)smapi->st_manager_private;
    struct hash_entry *entry;
 
-   if (!smPriv || !smPriv->stfbi_ht);
+   if (!smPriv || !smPriv->stfbi_ht)
       return;
 
    mtx_lock(&smPriv->st_mutex);
-- 
1.9.1



More information about the mesa-dev mailing list