diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-10-07 14:56:29 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-20 07:20:15 -0400 |
commit | 077661b6ed24e530dabc9db3ab3ae48fbaf19679 (patch) | |
tree | 5e6892e693c459c401c9626fcab1298dcaece266 /sound/soc/fsl | |
parent | 89dea487646831d47b0c56723a7c43c62b094c48 (diff) |
ASoC: eukrea-tlv320: Fix of_node_put() call with uninitialized object
The of_node_put() call in eukrea_tlv320_probe() may take an
uninitialized pointer, as compiler spotted out:
sound/soc/fsl/eukrea-tlv320.c:221:14: warning: 'ssi_np' may be used uninitialized in this function [-Wuninitialized]
This patch adds the proper NULL initializations as a fix.
(codec_np is also NULL initialized just for consistency.)
Fixes: 66f232908de2 ('ASoC: eukrea-tlv320: Add DT support')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/eukrea-tlv320.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/eukrea-tlv320.c b/sound/soc/fsl/eukrea-tlv320.c index dd931fa5a813..b175b0145a42 100644 --- a/sound/soc/fsl/eukrea-tlv320.c +++ b/sound/soc/fsl/eukrea-tlv320.c | |||
@@ -105,7 +105,7 @@ static int eukrea_tlv320_probe(struct platform_device *pdev) | |||
105 | int ret; | 105 | int ret; |
106 | int int_port = 0, ext_port; | 106 | int int_port = 0, ext_port; |
107 | struct device_node *np = pdev->dev.of_node; | 107 | struct device_node *np = pdev->dev.of_node; |
108 | struct device_node *ssi_np, *codec_np; | 108 | struct device_node *ssi_np = NULL, *codec_np = NULL; |
109 | 109 | ||
110 | eukrea_tlv320.dev = &pdev->dev; | 110 | eukrea_tlv320.dev = &pdev->dev; |
111 | if (np) { | 111 | if (np) { |