projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85288b3
)
ASoC: qcom: sc7180: initialize the "no_headphone" variable
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 16 Nov 2020 12:59:50 +0000
(15:59 +0300)
committer
Mark Brown
<broonie@kernel.org>
Mon, 16 Nov 2020 20:03:33 +0000
(20:03 +0000)
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>
sound/soc/qcom/sc7180.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/qcom/sc7180.c
b/sound/soc/qcom/sc7180.c
index e2e6567566affd8658e9726173f4b30c3750004d..de70fa792aea5ab65bb8a90bf39876c9c79df573 100644
(file)
--- 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);