From 7c317f4619eebce646ebe90b1697f2d5a288fba6 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Fri, 29 Mar 2024 18:21:52 +0100 Subject: [PATCH] CLEANUP: Reapply xalloc_cast.cocci This reapplies xalloc_cast.cocci across the whole src/ tree. --- src/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpuset.c b/src/cpuset.c index 82e350f13..a20b81a25 100644 --- a/src/cpuset.c +++ b/src/cpuset.c @@ -280,7 +280,7 @@ int cpu_map_configured(void) static int cpuset_alloc(void) { /* allocate the structures used to store CPU topology info */ - cpu_map = (struct cpu_map*)calloc(MAX_TGROUPS, sizeof(*cpu_map)); + cpu_map = calloc(MAX_TGROUPS, sizeof(*cpu_map)); if (!cpu_map) return 0;