Commit 588e7ac5 authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne Committed by Greg Kroah-Hartman

staging: bcm2835-audio: don't initialize memory twice

The memory is being allocated with devres_alloc(), wich ultimately uses
__GFP_ZERO to call kmalloc. We don't need to zero the memory area again
in bcm2835-audio.
Signed-off-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent aa1b40c6
...@@ -39,8 +39,6 @@ static int bcm2835_devm_add_vchi_ctx(struct device *dev) ...@@ -39,8 +39,6 @@ static int bcm2835_devm_add_vchi_ctx(struct device *dev)
if (!vchi_ctx) if (!vchi_ctx)
return -ENOMEM; return -ENOMEM;
memset(vchi_ctx, 0, sizeof(*vchi_ctx));
ret = bcm2835_new_vchi_ctx(dev, vchi_ctx); ret = bcm2835_new_vchi_ctx(dev, vchi_ctx);
if (ret) { if (ret) {
devres_free(vchi_ctx); devres_free(vchi_ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment