diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-01-15 11:39:29 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-01-15 11:39:29 -0500 |
commit | b645d79619e8b15e91cc7df23c5f8a23d0d69377 (patch) | |
tree | ad3bcbbe4e30ba8dd07a15f33c76d525c7fc646d /sound/pci | |
parent | a0c041cb6f74f9734d9a3af1061a718b3879a255 (diff) |
ALSA: hda/ca0132 - Fix superfluous unsigned check
Fix a warning by smatch,
sound/pci/hda/patch_ca0132.c:714 dspio_send() warn: always true
condition '(res >= 0) => (0-u32max >= 0)'
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_ca0132.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 467c9a18819b..7668388e8b56 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c | |||
@@ -1054,7 +1054,7 @@ static void chipio_enable_clocks(struct hda_codec *codec) | |||
1054 | static int dspio_send(struct hda_codec *codec, unsigned int reg, | 1054 | static int dspio_send(struct hda_codec *codec, unsigned int reg, |
1055 | unsigned int data) | 1055 | unsigned int data) |
1056 | { | 1056 | { |
1057 | unsigned int res; | 1057 | int res; |
1058 | int retry = 50; | 1058 | int retry = 50; |
1059 | 1059 | ||
1060 | /* send bits of data specified by reg to dsp */ | 1060 | /* send bits of data specified by reg to dsp */ |