summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorYeleswarapu Nagaradhesh <nagaradh@codeaurora.org>2016-02-18 15:24:17 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-25 16:02:46 -0700
commit1797f0368cc8f4c465df832fd204f0a47006f63b (patch)
tree35917ec40c1d715a44c0b4a2ab1a20edd9b713b5 /sound/soc
parentf9b5c372bb2eb11da82c7039551ec7f7a39c826f (diff)
ASoC: wcd_cpe_core: initialize return variable
The return variable is initialized if there is an error and is left uninitialized otherwise. There is a possibility of returning garbage. CRs-Fixed: 980968 Change-Id: I2a21ef7934472ae2fd59d6277df4b3e9b401b489 Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wcd_cpe_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wcd_cpe_core.c b/sound/soc/codecs/wcd_cpe_core.c
index 7b41afc2bdae..ddc428dfdb64 100644
--- a/sound/soc/codecs/wcd_cpe_core.c
+++ b/sound/soc/codecs/wcd_cpe_core.c
@@ -1682,7 +1682,7 @@ done:
static int wcd_cpe_debugfs_init(struct wcd_cpe_core *core)
{
- int rc;
+ int rc = 0;
struct dentry *dir = debugfs_create_dir("wcd_cpe", NULL);
if (IS_ERR_OR_NULL(dir)) {