mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
log: remove useless cast
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>
This commit is contained in:
parent
b4fa94959d
commit
c1f39edc62
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
ldev = log_device_find_by_name(drv_name);
|
||||||
if (!ldev)
|
if (!ldev)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
filt = (struct log_filter *)calloc(1, sizeof(*filt));
|
filt = calloc(1, sizeof(*filt));
|
||||||
if (!filt)
|
if (!filt)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue