iris: use CALLOC_STRUCT instead of calloc for readability
Signed-off-by: Rohan Garg <rohan.garg@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: José Roberto de Souza <None> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32771>
This commit is contained in:
@@ -545,7 +545,7 @@ static struct iris_resource *
|
||||
iris_alloc_resource(struct pipe_screen *pscreen,
|
||||
const struct pipe_resource *templ)
|
||||
{
|
||||
struct iris_resource *res = calloc(1, sizeof(struct iris_resource));
|
||||
struct iris_resource *res = CALLOC_STRUCT(iris_resource);
|
||||
if (!res)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user