projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4fa949
)
log: remove useless cast
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 19 Apr 2020 08:48:36 +0000
(10:48 +0200)
committer
Simon Glass
<sjg@chromium.org>
Sun, 26 Apr 2020 20:25:21 +0000
(14:25 -0600)
There is no need to cast from (void *) before assigning to a pointer.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/log.c
patch
|
blob
|
history
diff --git
a/common/log.c
b/common/log.c
index ffb3cd6933223a1622e2cc7e2543f3f5a86586c8..c5b9b489ca3775f2376a72fa8747e60b5cee1aa3 100644
(file)
--- 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;