diff mbox series

[v1] ALSA: hda/tas2781: fix 'fw_entry' is used uninitialized

Message ID 20230712024408.316793-1-13916275206@139.com
State New
Headers show
Series [v1] ALSA: hda/tas2781: fix 'fw_entry' is used uninitialized | expand

Commit Message

Shenghao Ding July 12, 2023, 2:44 a.m. UTC
Fix 'fw_entry' is used uninitialized.

Signed-off-by: Shenghao Ding <13916275206@139.com>

Changes in v1:
 | Reported-by: kernel test robot <lkp@intel.com>
 | Closes: https://lore.kernel.org/oe-kbuild-all/202307070922.doxi1HFc-lkp@intel.com/
---
 sound/soc/codecs/tas2781-fmwlib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/codecs/tas2781-fmwlib.c b/sound/soc/codecs/tas2781-fmwlib.c
index eb55abae0d7b..0b08e24ed23a 100644
--- a/sound/soc/codecs/tas2781-fmwlib.c
+++ b/sound/soc/codecs/tas2781-fmwlib.c
@@ -1908,7 +1908,7 @@  int tas2781_load_calibration(void *context, char *file_name,
 {
 	struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context;
 	struct tasdevice *tasdev = &(tas_priv->tasdevice[i]);
-	const struct firmware *fw_entry;
+	const struct firmware *fw_entry = NULL;
 	struct tasdevice_fw *tas_fmw;
 	struct firmware fmw;
 	int offset = 0;