You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
5 years ago
|
From 7250c9d3d3f1b861d8f0c6220a81a465e45d70eb Mon Sep 17 00:00:00 2001
|
||
5 years ago
|
From: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||
|
Date: Wed, 17 Oct 2018 21:01:51 +0200
|
||
5 years ago
|
Subject: [PATCH] staging: bcm2835-audio: don't initialize memory twice
|
||
5 years ago
|
|
||
|
commit 2e5f59fb77397cab3bc3d156e8be4164a67d32ef upstream.
|
||
|
|
||
|
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: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
||
|
Reviewed-by: Takashi Iwai <tiwai@suse.de>
|
||
|
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
|
||
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
||
|
---
|
||
|
drivers/staging/vc04_services/bcm2835-audio/bcm2835.c | 2 --
|
||
|
1 file changed, 2 deletions(-)
|
||
|
|
||
|
--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
|
||
|
+++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c
|
||
|
@@ -39,8 +39,6 @@ static int bcm2835_devm_add_vchi_ctx(str
|
||
|
if (!vchi_ctx)
|
||
|
return -ENOMEM;
|
||
|
|
||
|
- memset(vchi_ctx, 0, sizeof(*vchi_ctx));
|
||
|
-
|
||
|
ret = bcm2835_new_vchi_ctx(dev, vchi_ctx);
|
||
|
if (ret) {
|
||
|
devres_free(vchi_ctx);
|