Commit 28fc73b
committed
[SQUASHME] ASoC: SOF: ops: fix uninitialized use warning
For some architectures/compilers, 0-day reports errors
sound/soc/sof/ops.c: In function 'snd_sof_pci_update_bits_unlocked':
sound/soc/sof/ops.c:26:6: warning: 'ret' is used uninitialized in this function [-Wuninitialized]
u32 ret;
^~~
Fix by forcing value to ~0 (as done in pci_read_config_dword)
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>1 parent 0fee76c commit 28fc73b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments