Re: [PATCH 2/3] ASoC: SOF: Fix a compile warning with CONFIG_PCI=n

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2019-05-06 at 17:02 +0200, Takashi Iwai wrote:
> A trivial fix for the randconfig build error:
>   sound/soc/sof/ops.c:20:6: warning: ‘ret’ is used uninitialized in
> this function [-Wuninitialized]
Looks good. Thanks, Takashi.

Ranjani
> 
> Fixes: d1d95fcb63e3 ("ASoC: SOF: Add DSP HW abstraction operations")
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
> ---
>  sound/soc/sof/ops.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/sof/ops.c b/sound/soc/sof/ops.c
> index 80f907740b82..7a27c3b719e7 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;

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux