* [PATCH] ASoC: qcom: sc7180: initialize the "no_headphone" variable
@ 2020-11-16 12:59 ` Dan Carpenter
0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2020-11-16 12:59 UTC (permalink / raw)
To: Patrick Lai, xuyuqing
Cc: alsa-devel, Banajit Goswami, kernel-janitors, Takashi Iwai,
Liam Girdwood, Mark Brown
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>
---
Apparently we recently turned off uninitialized variable warnings by
default in commit 78a5255ffb6a ("Stop the ad-hoc games with
-Wno-maybe-initialized")
sound/soc/qcom/sc7180.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.29.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ASoC: qcom: sc7180: initialize the "no_headphone" variable
@ 2020-11-16 12:59 ` Dan Carpenter
0 siblings, 0 replies; 3+ messages in thread
From: Dan Carpenter @ 2020-11-16 12:59 UTC (permalink / raw)
To: Patrick Lai, xuyuqing
Cc: alsa-devel, Banajit Goswami, kernel-janitors, Takashi Iwai,
Liam Girdwood, Mark Brown
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>
---
Apparently we recently turned off uninitialized variable warnings by
default in commit 78a5255ffb6a ("Stop the ad-hoc games with
-Wno-maybe-initialized")
sound/soc/qcom/sc7180.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.29.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: qcom: sc7180: initialize the "no_headphone" variable
2020-11-16 12:59 ` Dan Carpenter
(?)
@ 2020-11-16 23:33 ` Mark Brown
-1 siblings, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-11-16 23:33 UTC (permalink / raw)
To: Patrick Lai, xuyuqing, Dan Carpenter
Cc: alsa-devel, Banajit Goswami, kernel-janitors, Takashi Iwai,
Liam Girdwood
On Mon, 16 Nov 2020 15:59:50 +0300, Dan Carpenter wrote:
> The "no_headphone" variable is never set to "false" so it could be
> uninitialized.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: qcom: sc7180: initialize the "no_headphone" variable
commit: 7141f25f14e03a0b049ffb2010b12abf652a10f3
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-16 23:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-16 12:59 [PATCH] ASoC: qcom: sc7180: initialize the "no_headphone" variable Dan Carpenter
2020-11-16 12:59 ` Dan Carpenter
2020-11-16 23:33 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.