diff options
| author | Evgenii Burenchev <evg28bur@yandex.ru> | 2026-07-06 16:16:34 +0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-07 16:32:14 +0200 |
| commit | cd3447e1b6425efd1704ed07f1f245c842927eb0 (patch) | |
| tree | a0f50870ff99100384498c06b110bd789cc0c649 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | f16eaa38ea640884f66d24865c770c3f6c43bd42 (diff) | |
ALSA: via82xx: Remove unreachable branch in snd_via686_pcm_pointer()
The condition
if (count && size < count)
can never evaluate to true.
The VIA DMA count register is masked with 0x00ffffff before use, while
the DMA buffer size is limited to 0x00fffffe bytes. As a result, 'count'
can never exceed 'size', making the condition permanently false.
This branch has therefore been unreachable since the driver was
introduced. Remove the unreachable branch without changing runtime
behavior.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Evgenii Burenchev <evg28bur@yandex.ru>
Link: https://patch.msgid.link/20260706131638.15311-1-evg28bur@yandex.ru
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
