aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2015-12-17 12:36:49 -0500
committerThan McIntosh <thanm@google.com>2015-12-17 12:36:49 -0500
commit7f30bf9f9e7be3dc28dc2689c542ebc0486fed75 (patch)
tree452208b5c305d2ed44f12f732e9de4aee5ec1f5e
parent487939498c49ad566f07af21e89144081239c184 (diff)
downloadedison-v3.10-7f30bf9f9e7be3dc28dc2689c542ebc0486fed75.tar.gz
Fix kernel compilation warnings.
Resolve compilation warnings encountered when building with the most recent platform version of gcc 4.9: .../hardware/bsp/kernel/intel/edison-3.10/sound/soc/intel/effects.c:191:31: error: 'pipe_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] dsp_payload->dsp_hdr.pipe_id = pipe_id; ^ .../hardware/bsp/kernel/intel/edison-3.10/sound/soc/intel/effects.c:227:5: note: 'pipe_id' was declared here u8 pipe_id; Bug: 26226110 Change-Id: I587a9f03af1067a4a7984dc432acc47754e845cf
-rw-r--r--sound/soc/intel/effects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/intel/effects.c b/sound/soc/intel/effects.c
index 6bb4199d472..4de0ec32585 100644
--- a/sound/soc/intel/effects.c
+++ b/sound/soc/intel/effects.c
@@ -224,7 +224,7 @@ static int sst_get_pipe_id(struct sst_dev_stream_map *map, int map_size,
static int sst_effects_create(struct snd_card *card, struct snd_effect *effect)
{
int ret = 0;
- u8 pipe_id;
+ u8 pipe_id = 0;
struct ipc_effect_payload dsp_payload;
struct ipc_dsp_effects_info effects_info;
struct sst_data *sst;
@@ -257,7 +257,7 @@ static int sst_effects_create(struct snd_card *card, struct snd_effect *effect)
static int sst_effects_destroy(struct snd_card *card, struct snd_effect *effect)
{
int ret = 0;
- u8 pipe_id;
+ u8 pipe_id = 0;
struct ipc_effect_payload dsp_payload;
struct ipc_dsp_effects_info effects_info;
struct sst_data *sst;