diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-02-06 10:24:04 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-02-06 10:27:06 +0100 |
commit | eedec3d3854a390fc14008f265930f8c22b0373f (patch) | |
tree | e5fb6f36445e78dddc4d182bb64ceecf9eb88949 /fs/ext4 | |
parent | 226e01ef0da0b1a4c2c3922fb83ff3f9e4dfb508 (diff) | |
download | linux-eedec3d3854a390fc14008f265930f8c22b0373f.tar.bz2 |
ALSA: hda/realtek - Fix a wrong condition
sparse complains that "spec->multiout.dac_nids" is a pointer.
sound/pci/hda/patch_realtek.c:2321:37: error: incompatible types for operation (>)
sound/pci/hda/patch_realtek.c:2321:37: left side has type unsigned short const [usertype] *dac_nids
sound/pci/hda/patch_realtek.c:2321:37: right side has type int
It was meant to be num_dacs instead of dac_nids.
Although the current code still works as expected (when num_dacs is zero,
dac_nids should be NULL, too), better to fix now, of course.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions