linux/sound/sparc
wangdicheng 4797f26715 ALSA: sparc/dbri: Fix "possible condition with no effect" warning
Fix a compiler warning about a condition with no effect:

sound/sparc/dbri.c:1843:1-3: WARNING: possible condition with no effect (if == else)

When DBRI_DEBUG is not defined, dprintk expands to an empty do-while
statement, making both branches of the if-else no-ops. Guard the entire
debug block with #ifdef DBRI_DEBUG to eliminate the warning and keep
the rval reference consistent with its declaration scope.

Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Link: https://patch.msgid.link/20260717091542.721877-3-wangdich9700@163.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-07-19 10:42:22 +02:00
..
amd7930.c ALSA: sparc/amd7930: Use guard() for spin locks 2025-09-10 13:20:01 +02:00
cs4231.c ALSA: sparc/cs4231: Use guard() for spin locks 2025-09-10 13:20:01 +02:00
dbri.c ALSA: sparc/dbri: Fix "possible condition with no effect" warning 2026-07-19 10:42:22 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile ALSA: misc: Use *-y instead of *-objs in Makefile 2024-05-08 18:18:13 +02:00