aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2004-10-29 21:14:41 +0200
committerJaroslav Kysela <perex@suse.cz>2004-10-29 21:14:41 +0200
commit1cefb0bf75329737a0f836134f6de961d3566748 (patch)
tree09e3254402337087fb9d2dfa9a8f40e0354fbd6f /sound
parent28dda887f13587e0e961337a3b2bfafee7ca78c9 (diff)
downloadhistory-1cefb0bf75329737a0f836134f6de961d3566748.tar.gz
[ALSA] fix data type mismatch in sign_invert
au88x0 driver the last sign_invert cleanup introduced a data type mismatch (an unsigned value can never be negative) Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/au88x0/au88x0_eq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/au88x0/au88x0_eq.c b/sound/pci/au88x0/au88x0_eq.c
index 1f0ff9ecd76485..53b47a42c7d805 100644
--- a/sound/pci/au88x0/au88x0_eq.c
+++ b/sound/pci/au88x0/au88x0_eq.c
@@ -57,7 +57,7 @@ static void vortex_EqHw_SetTimeConsts(vortex_t * vortex, u16 gain, u16 level)
static inline u16 sign_invert(u16 a)
{
/* -(-32768) -> -32768 so we do -(-32768) -> 32767 to make the result positive */
- if (a == -32768)
+ if (a == (u16)-32768)
return 32767;
else
return -a;