summaryrefslogtreecommitdiffstats
path: root/libasm/asm_newsubscn.c
diff options
context:
space:
mode:
authorDmitry V. Levin <[email protected]>2021-09-06 08:00:00 +0000
committerDmitry V. Levin <[email protected]>2021-09-09 08:01:00 +0000
commite094270980f1ca8af86a64cee0dbb6f1df670619 (patch)
tree1471f9586bb9e3d7f5448001353d47e94145a4ae /libasm/asm_newsubscn.c
parent02b05e183998943dd5a19ba783b8793e2ab9ab44 (diff)
Remove redundant casts of memory allocating functions returning void *
Return values of functions returning "void *", e.g. calloc, malloc, realloc, xcalloc, xmalloc, and xrealloc, do not need explicit casts. Signed-off-by: Dmitry V. Levin <[email protected]>
Diffstat (limited to 'libasm/asm_newsubscn.c')
-rw-r--r--libasm/asm_newsubscn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libasm/asm_newsubscn.c b/libasm/asm_newsubscn.c
index 906240ac..2f2ba78e 100644
--- a/libasm/asm_newsubscn.c
+++ b/libasm/asm_newsubscn.c
@@ -62,7 +62,7 @@ asm_newsubscn (AsmScn_t *asmscn, unsigned int nr)
runp = runp->subnext;
}
- newp = (AsmScn_t *) malloc (sizeof (AsmScn_t));
+ newp = malloc (sizeof (AsmScn_t));
if (newp == NULL)
return NULL;