From c1f39edc62adc81775e750957aa557bcf994e607 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 19 Apr 2020 10:48:36 +0200 Subject: [PATCH] log: remove useless cast There is no need to cast from (void *) before assigning to a pointer. Signed-off-by: Heinrich Schuchardt Reviewed-by: Simon Glass --- common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/log.c b/common/log.c index ffb3cd6933..c5b9b489ca 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; -- 2.39.5