From: Marek Olšák Date: Tue, 25 Jul 2017 16:28:06 +0000 (+0200) Subject: st/mesa: fix unconditional return in st_framebuffer_iface_remove X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=914f11e75b8ebe8a0faab76ce25fe185ab580eee;p=mesa.git st/mesa: fix unconditional return in st_framebuffer_iface_remove Noticed by James Legg @ Feral. Cc: 17.2 Reviewed-by: Samuel Pitoiset --- diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 834bcc9f8c2..6447403fc66 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);