Commit 7141f25f authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

ASoC: qcom: sc7180: initialize the "no_headphone" variable

The "no_headphone" variable is never set to "false" so it could be
uninitialized.

Fixes: e936619b ("ASoC: qcom: sc7180: Modify machine driver for sound card")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201116125950.GA44063@mwandaSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 85288b3b
...@@ -316,7 +316,7 @@ static int sc7180_snd_platform_probe(struct platform_device *pdev) ...@@ -316,7 +316,7 @@ static int sc7180_snd_platform_probe(struct platform_device *pdev)
struct snd_soc_dai_link *link; struct snd_soc_dai_link *link;
int ret; int ret;
int i; int i;
bool no_headphone; bool no_headphone = false;
/* Allocate the private data */ /* Allocate the private data */
data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment