diff options
author | Jie Yang <yang.jie@intel.com> | 2015-02-04 07:23:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-04 07:31:43 -0500 |
commit | c41cda1dbe50816d839c32271007c7b832d4d14a (patch) | |
tree | 5337ad31689854ffa0a60c083403a658851f3d6f /sound/soc/intel/sst-firmware.c | |
parent | 842aaa0cbf66621f00d641f5abfd2db40c61320b (diff) |
ASoC: Intel: initial scalar variable ba
Reported by Coverity: CID 1267985 CID 1267986
Fix these two Defects: Uninitialized scalar variable.
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/sst-firmware.c')
-rw-r--r-- | sound/soc/intel/sst-firmware.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c index cad6ea179cea..dcc145f81ec9 100644 --- a/sound/soc/intel/sst-firmware.c +++ b/sound/soc/intel/sst-firmware.c | |||
@@ -786,6 +786,7 @@ int sst_module_alloc_blocks(struct sst_module *module) | |||
786 | struct sst_block_allocator ba; | 786 | struct sst_block_allocator ba; |
787 | int ret; | 787 | int ret; |
788 | 788 | ||
789 | memset(&ba, 0, sizeof(ba)); | ||
789 | ba.size = module->size; | 790 | ba.size = module->size; |
790 | ba.type = module->type; | 791 | ba.type = module->type; |
791 | ba.offset = module->offset; | 792 | ba.offset = module->offset; |
@@ -859,6 +860,7 @@ int sst_module_runtime_alloc_blocks(struct sst_module_runtime *runtime, | |||
859 | if (module->persistent_size == 0) | 860 | if (module->persistent_size == 0) |
860 | return 0; | 861 | return 0; |
861 | 862 | ||
863 | memset(&ba, 0, sizeof(ba)); | ||
862 | ba.size = module->persistent_size; | 864 | ba.size = module->persistent_size; |
863 | ba.type = SST_MEM_DRAM; | 865 | ba.type = SST_MEM_DRAM; |
864 | 866 | ||