From: Takashi Iwai Date: Mon, 6 May 2019 15:02:23 +0000 (+0200) Subject: ASoC: SOF: Fix a compile warning with CONFIG_PCI=n X-Git-Tag: v5.4-rc1~712^2~8^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c41d384c39f17ffb5326531da2374a1ab5859403;p=platform%2Fkernel%2Flinux-rpi.git ASoC: SOF: Fix a compile warning with CONFIG_PCI=n A trivial fix for the randconfig build error: sound/soc/sof/ops.c:20:6: warning: ‘ret’ is used uninitialized in this function [-Wuninitialized] Fixes: d1d95fcb63e3 ("ASoC: SOF: Add DSP HW abstraction operations") Signed-off-by: Takashi Iwai Acked-by: Pierre-Louis Bossart Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/ops.c b/sound/soc/sof/ops.c index 80f9077..7a27c3b 100644 --- a/sound/soc/sof/ops.c +++ b/sound/soc/sof/ops.c @@ -17,7 +17,7 @@ bool snd_sof_pci_update_bits_unlocked(struct snd_sof_dev *sdev, u32 offset, { struct pci_dev *pci = to_pci_dev(sdev->dev); unsigned int old, new; - u32 ret; + u32 ret = 0; pci_read_config_dword(pci, offset, &ret); old = ret;