[PATCH 0/4] ALSA: Fix compiler warnings in sound subsystem
From: wangdich9700
Date: Fri Jul 17 2026 - 03:06:56 EST
From: wangdicheng <wangdicheng@xxxxxxxxxx>
This series fixes four compiler warnings in the sound subsystem,
covering both logical redundancies and potential runtime bugs.
Two categories of warnings are addressed:
1. "possible condition with no effect (if == else)" -- redundant
conditional branches that produce identical code. These are
cosmetic issues but should be cleaned up.
2. "do_div() does a 64-by-32 division" -- use of do_div() with
a 64-bit divisor, which silently truncates the upper 32 bits.
These are potential runtime bugs on 64-bit platforms where the
divisor may exceed the 32-bit range.
Patches 1-2 fix the if==else warnings.
Patches 3-4 fix the do_div() warnings.
wangdicheng (4):
ASoC: mediatek: mt8189: Remove redundant else-if branch with identical
body
ALSA: sparc/dbri: Fix "possible condition with no effect" warning
ASoC: fsl_easrc: Use div64_u64 for 64-by-64 division
ASoC: tlv320aic32x4: Use div64_ul for division by unsigned long
sound/soc/codecs/tlv320aic32x4-clk.c | 2 +-
sound/soc/fsl/fsl_easrc.c | 2 +-
sound/soc/mediatek/mt8189/mt8189-dai-adda.c | 2 --
sound/sparc/dbri.c | 2 ++
4 files changed, 4 insertions(+), 4 deletions(-)
--
2.25.1