From b645d79619e8b15e91cc7df23c5f8a23d0d69377 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <tiwai@suse.de>
Date: Tue, 15 Jan 2013 17:39:29 +0100
Subject: [PATCH 22/29] ALSA: hda/ca0132 - Fix superfluous unsigned check
Git-commit: b645d79619e8b15e91cc7df23c5f8a23d0d69377
Patch-mainline: 3.9-rc1
References: bnc#814440,FATE#314291

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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/pci/hda/patch_ca0132.c
+++ b/sound/pci/hda/patch_ca0132.c
@@ -1054,7 +1054,7 @@ static void chipio_enable_clocks(struct
 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 */
