In "switch (mem_type)" the brackets were surrounding "case+default"
instead of "case" only.
Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Christian K<C3><B6>nig <christian.koenig@amd.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
buf_info->handle = (intptr_t)whandle.handle;
break;
+ }
default:
return VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE;
}
- }
-
- buf_info->type = buf->type;
- buf_info->mem_type = mem_type;
- buf_info->mem_size = buf->num_elements * buf->size;
+ buf_info->type = buf->type;
+ buf_info->mem_type = mem_type;
+ buf_info->mem_size = buf->num_elements * buf->size;
}
buf->export_refcount++;