I forgot to put the cleanup in earlier.
Signed-off-by: Dave Airlie <airlied@redhat.com>
variable_storage *
glsl_to_tgsi_visitor::find_variable_storage(ir_variable *var)
{
- struct hash_entry *entry = _mesa_hash_table_search(this->variables,
- var);
- variable_storage *storage;
+ struct hash_entry *entry;
+
+ entry = _mesa_hash_table_search(this->variables, var);
if (!entry)
return NULL;
- storage = (variable_storage *)entry->data;
-
- return storage;
+ return (variable_storage *)entry->data;
}
void