Skip to content

Commit

Permalink
ASoC: Intel: remove status, it is shadowing status of a higher scope
Browse files Browse the repository at this point in the history
The second declaration of status is shadowing the status of a higher
scope.  This uninitialized status results in garbage being returned
by the !x86_match_cpu(cpu_ids) || !iosf_mbi_available() return exit
path.  Fix this by removing the extraneous second declaration of
status.

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Colin Ian King authored and broonie committed Sep 24, 2016
1 parent fe27f4e commit dc99506
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/intel/atom/sst/sst_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ static int is_byt_cr(struct device *dev, bool *bytcr)
{ X86_VENDOR_INTEL, 6, 55 }, /* Valleyview, Bay Trail */
{}
};
int status;
u32 bios_status;

if (!x86_match_cpu(cpu_ids) || !iosf_mbi_available()) {
Expand Down

0 comments on commit dc99506

Please sign in to comment.