From abd137d0797135ca1b0451a236ec5cc3f78810bc Mon Sep 17 00:00:00 2001 From: Rohan Garg Date: Mon, 1 Jul 2024 15:30:50 +0200 Subject: [PATCH] iris: use CALLOC_STRUCT instead of calloc for readability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rohan Garg Reviewed-by: José Roberto de Souza Reviewed-by: José Roberto de Souza Part-of: --- src/gallium/drivers/iris/iris_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index e3e22ecee05..29ce8d00cbf 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -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;