diff options
author | 2019-12-07 14:49:53 -0800 | |
---|---|---|
committer | 2019-12-08 09:47:43 +0100 | |
commit | c08f0a92f4bef9467810551a2db0201d1b95d01e (patch) | |
tree | 73a91838d4234edd871c46d61b8a42a8ed1db88a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ALSA: pcm: oss: Avoid potential buffer overflows (diff) | |
download | linux-dev-c08f0a92f4bef9467810551a2db0201d1b95d01e.tar.xz linux-dev-c08f0a92f4bef9467810551a2db0201d1b95d01e.zip |
ALSA: echoaudio: simplify get_audio_levels
The loop optimizer seems to go astray here, and produces some warnings
that don't seem valid.
Still, the code can be simplified -- just clear the whole array at the
beginning, and fill in whatever values are valid on the platform.
Warnings before this change (GCC 8.2.0 ARM allmodconfig):
In file included from ../sound/pci/echoaudio/gina24.c:115:
../sound/pci/echoaudio/echoaudio.c: In function 'snd_echo_vumeters_get':
../sound/pci/echoaudio/echoaudio_dsp.c:647:9: warning: iteration 1073741824 invokes undefined behavior [-Waggressive-loop-optimizations]
In file included from ../sound/pci/echoaudio/layla24.c:112:
../sound/pci/echoaudio/echoaudio.c: In function 'snd_echo_vumeters_get':
../sound/pci/echoaudio/echoaudio_dsp.c:658:9: warning: iteration 1073741824 invokes undefined behavior [-Waggressive-loop-optimizations]
../sound/pci/echoaudio/echoaudio_dsp.c:647:9: warning: iteration 1073741824 invokes undefined behavior [-Waggressive-loop-optimizations]
Signed-off-by: Olof Johansson <olof@lixom.net>
Link: https://lore.kernel.org/r/20191207224953.25944-1-olof@lixom.net
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions