ALSA: Cleanup redundant tests on unsigned
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 23 Oct 2009 14:03:08 +0000 (16:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 30 Oct 2009 11:25:07 +0000 (12:25 +0100)
commit84ed1a1942e8c28fb4c23a6235ec48672fc43e49
tree67b0d7a9c639cddd9cb6319ed67e0c0d6a680dd7
parenta688e4885c1aa6b88ab5ffa64655bacc01749c9e
ALSA: Cleanup redundant tests on unsigned

The variables are unsigned so the test `>= 0' is always true,
the `< 0' test always fails. In these cases the other part of
the test catches wrapped values.

In dac_audio_write() there does not occur a test for wrapped
values, but the test appears redundant.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/sh_dac_audio.c
sound/pci/ca0106/ca0106_proc.c
sound/pci/ctxfi/ctatc.c
sound/pci/emu10k1/emu10k1x.c
sound/pci/emu10k1/emuproc.c
sound/pci/emu10k1/io.c
sound/soc/codecs/tlv320aic23.c