[Mesa-dev] [PATCH] st/mesa: fix unconditional return in st_framebuffer_iface_remove
Samuel Pitoiset
samuel.pitoiset at gmail.com
Tue Jul 25 16:48:45 UTC 2017
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 07/25/2017 06:30 PM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> Cc: 17.2 <mesa-stable at lists.freedesktop.org>
> ---
> 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 ede5439..78093ac 100644
> --- a/src/mesa/state_tracker/st_manager.c
> +++ b/src/mesa/state_tracker/st_manager.c
> @@ -553,21 +553,21 @@ st_framebuffer_iface_insert(struct st_manager *smapi,
>
>
> static void
> st_framebuffer_iface_remove(struct st_manager *smapi,
> struct st_framebuffer_iface *stfbi)
> {
> struct st_manager_private *smPriv =
> (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);
> entry = _mesa_hash_table_search(smPriv->stfbi_ht, stfbi);
> if (!entry)
> goto unlock;
>
> _mesa_hash_table_remove(smPriv->stfbi_ht, entry);
>
> unlock:
>
More information about the mesa-dev
mailing list