summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhimansh <himanshu.agrawal@stericsson.com>2012-02-17 16:59:24 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:07:07 +0200
commit1f3fe7215aec7e40ad760eacbcbf7bef64a69b0b (patch)
tree5d5690e3fbda1347b428ea4ba18fc1dfee38a05d
parentcf5df5ea669adb16e6d4873755e5fedcdadc2d7f (diff)
Ux500 CM: Correct variable initialization
ST-Ericsson ID: 412189 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I10ba7bf50be94424b3a2e122862c1fda08df769d Signed-off-by: Himanshu Agrawal <himanshu.agrawal@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/49349 Reviewed-by: Ashish Kumar TANWER <ashish.tanwer@stericsson.com> Tested-by: Ashish Kumar TANWER <ashish.tanwer@stericsson.com> Reviewed-by: Pierre PEIFFER <pierre.peiffer@stericsson.com>
-rw-r--r--drivers/staging/nmf-cm/cm/engine/component/src/component_wrapper.c1
-rw-r--r--drivers/staging/nmf-cm/cm/engine/elf/src/elfload.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/nmf-cm/cm/engine/component/src/component_wrapper.c b/drivers/staging/nmf-cm/cm/engine/component/src/component_wrapper.c
index 9a5c683ed1f..d593950cd97 100644
--- a/drivers/staging/nmf-cm/cm/engine/component/src/component_wrapper.c
+++ b/drivers/staging/nmf-cm/cm/engine/component/src/component_wrapper.c
@@ -657,6 +657,7 @@ PUBLIC EXPORT_SHARED t_cm_error CM_ENGINE_BindComponentFromCMCore(
dspEventMemType = SDRAM_EXT24;
break;
default:
+ error = CM_INVALID_PARAMETER;
goto out;
}
diff --git a/drivers/staging/nmf-cm/cm/engine/elf/src/elfload.c b/drivers/staging/nmf-cm/cm/engine/elf/src/elfload.c
index 274a1b6b59f..466d04508d1 100644
--- a/drivers/staging/nmf-cm/cm/engine/elf/src/elfload.c
+++ b/drivers/staging/nmf-cm/cm/engine/elf/src/elfload.c
@@ -181,7 +181,7 @@ t_cm_error cm_ELF_CheckFile(
t_elfdescription **elfhandlePtr)
{
t_elfdescription *elfhandle;
- t_tmp_elfdescription elftmp;
+ t_tmp_elfdescription elftmp = {0,};
t_cm_error error;
t_uint32 version;
t_uint32 compatibleVersion;