mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
ASoC: qcom: sc7180: initialize the "no_headphone" variable
The "no_headphone" variable is never set to "false" so it could be
uninitialized.
Fixes: e936619b7c ("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>
This commit is contained in:
parent
85288b3bf1
commit
7141f25f14
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user