diff options
| author | Dmitry V. Levin <[email protected]> | 2021-09-06 08:00:00 +0000 |
|---|---|---|
| committer | Dmitry V. Levin <[email protected]> | 2021-09-09 08:01:00 +0000 |
| commit | e094270980f1ca8af86a64cee0dbb6f1df670619 (patch) | |
| tree | 1471f9586bb9e3d7f5448001353d47e94145a4ae /libasm/asm_newabssym.c | |
| parent | 02b05e183998943dd5a19ba783b8793e2ab9ab44 (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_newabssym.c')
| -rw-r--r-- | libasm/asm_newabssym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libasm/asm_newabssym.c b/libasm/asm_newabssym.c index 34fef3e3..728d6043 100644 --- a/libasm/asm_newabssym.c +++ b/libasm/asm_newabssym.c @@ -71,7 +71,7 @@ asm_newabssym (AsmCtx_t *ctx, const char *name, GElf_Xword size, rwlock_wrlock (ctx->lock); - result = (AsmSym_t *) malloc (sizeof (AsmSym_t)); + result = malloc (sizeof (AsmSym_t)); if (result == NULL) return NULL; |
