summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2020-04-19 10:48:36 +0200
committerSimon Glass <[email protected]>2020-04-26 14:25:21 -0600
commitc1f39edc62adc81775e750957aa557bcf994e607 (patch)
tree00e38d9627c657e4f1199bbd58166d08438337f5
parentb4fa94959db039c7eca4531a5b9a41baffa8b4c8 (diff)
log: remove useless cast
There is no need to cast from (void *) before assigning to a pointer. Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]>
-rw-r--r--common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/log.c b/common/log.c
index ffb3cd69332..c5b9b489ca3 100644
--- a/common/log.c
+++ b/common/log.c
@@ -233,7 +233,7 @@ int log_add_filter(const char *drv_name, enum log_category_t cat_list[],
ldev = log_device_find_by_name(drv_name);
if (!ldev)
return -ENOENT;
- filt = (struct log_filter *)calloc(1, sizeof(*filt));
+ filt = calloc(1, sizeof(*filt));
if (!filt)
return -ENOMEM;