projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0c041c
)
ALSA: hda/ca0132 - Fix superfluous unsigned check
author
Takashi Iwai
<tiwai@suse.de>
Tue, 15 Jan 2013 16:39:29 +0000
(17:39 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 15 Jan 2013 16:39:29 +0000
(17:39 +0100)
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>
sound/pci/hda/patch_ca0132.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_ca0132.c
b/sound/pci/hda/patch_ca0132.c
index 467c9a18819b53686e1a31a84c3b6e713da31f13..7668388e8b56c2de0783fdad8bb59ea01aca1abe 100644
(file)
--- 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)
static int dspio_send(struct hda_codec *codec, unsigned int reg,
unsigned int data)
{
-
unsigned
int res;
+ int res;
int retry = 50;
/* send bits of data specified by reg to dsp */