Skip to content

Commit

Permalink
ALSA: hda/ca0132 - Fix superfluous unsigned check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jan 15, 2013
1 parent a0c041c commit b645d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_ca0132.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b645d79

Please sign in to comment.