ASoC: eukrea-tlv320: Fix of_node_put() call with uninitialized object
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Oct 2014 18:56:29 +0000 (20:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2014 11:20:15 +0000 (12:20 +0100)
commit077661b6ed24e530dabc9db3ab3ae48fbaf19679
tree5e6892e693c459c401c9626fcab1298dcaece266
parent89dea487646831d47b0c56723a7c43c62b094c48
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>
sound/soc/fsl/eukrea-tlv320.c