Skip to content

Commit

Permalink
ASoC: Intel: sof_rt5682: Fix uninitialized variable in probe
Browse files Browse the repository at this point in the history
Initialize "is_legacy_cpu" to false to prevent an uninitialized variable
bug.

Fixes: 8efcd48 ("ASoC: Intel: sof_rt5682: use common module for sof_card_private initialization")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/6e16433f-1897-46a2-b3ee-e177e7d846b8@moroto.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dan Carpenter authored and plbossart committed Apr 11, 2024
1 parent 4657c3a commit 46537ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/boards/sof_rt5682.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ static int sof_audio_probe(struct platform_device *pdev)
struct snd_soc_acpi_mach *mach = pdev->dev.platform_data;
struct sof_card_private *ctx;
char *card_name;
bool is_legacy_cpu;
bool is_legacy_cpu = false;
int ret;

if (pdev->id_entry && pdev->id_entry->driver_data)
Expand Down

0 comments on commit 46537ef

Please sign in to comment.