diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-11-16 13:59:50 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-16 21:03:33 +0100 |
commit | 7141f25f14e03a0b049ffb2010b12abf652a10f3 (patch) | |
tree | a66422b042b6ed5d338bbdbfee34386b3dc506fa | |
parent | Merge series "ASoC: use inclusive language for bclk/fsync/topology" from Pier... (diff) | |
download | linux-7141f25f14e03a0b049ffb2010b12abf652a10f3.tar.xz linux-7141f25f14e03a0b049ffb2010b12abf652a10f3.zip |
ASoC: qcom: sc7180: initialize the "no_headphone" variable
The "no_headphone" variable is never set to "false" so it could be
uninitialized.
Fixes: e936619b7ce7 ("ASoC: qcom: sc7180: Modify machine driver for sound card")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20201116125950.GA44063@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/qcom/sc7180.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/sc7180.c b/sound/soc/qcom/sc7180.c index e2e6567566af..de70fa792aea 100644 --- a/sound/soc/qcom/sc7180.c +++ b/sound/soc/qcom/sc7180.c @@ -316,7 +316,7 @@ static int sc7180_snd_platform_probe(struct platform_device *pdev) struct snd_soc_dai_link *link; int ret; int i; - bool no_headphone; + bool no_headphone = false; /* Allocate the private data */ data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); |