diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-10-18 09:39:50 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-19 05:57:01 -0400 |
commit | cbc6f28067aa0aa1193c2bf3546430b2c4dae22c (patch) | |
tree | a382363ac119f22a3c61b1485b255f8a237d8d0b /sound/firewire | |
parent | 3e93d42a04eea4e621f87bfc51b0ab868e131cb9 (diff) |
ALSA: dice: assign converted data to the same type of variable
In former commit, u32 data was assigned to __be32 variable instead of an
int variable. This is not enough solution because it still causes sparse
warnings.
dice.c:80:23: warning: incorrect type in assignment (different base types)
dice.c:80:23: expected restricted __be32 [usertype] value
dice.c:80:23: got unsigned int
dice.c:81:21: warning: restricted __be32 degrades to integer
dice.c:81:46: warning: restricted __be32 degrades to integer
This commit fixes this bug.
Fixes: 7c2d4c0cf5ba('ALSA: dice: Split transaction functionality into a file')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r-- | sound/firewire/dice/dice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/firewire/dice/dice.c b/sound/firewire/dice/dice.c index 70a111d7f428..5d99436dfcae 100644 --- a/sound/firewire/dice/dice.c +++ b/sound/firewire/dice/dice.c | |||
@@ -29,7 +29,8 @@ static int dice_interface_check(struct fw_unit *unit) | |||
29 | struct fw_csr_iterator it; | 29 | struct fw_csr_iterator it; |
30 | int key, val, vendor = -1, model = -1, err; | 30 | int key, val, vendor = -1, model = -1, err; |
31 | unsigned int category, i; | 31 | unsigned int category, i; |
32 | __be32 *pointers, value; | 32 | __be32 *pointers; |
33 | u32 value; | ||
33 | __be32 version; | 34 | __be32 version; |
34 | 35 | ||
35 | pointers = kmalloc_array(ARRAY_SIZE(min_values), sizeof(__be32), | 36 | pointers = kmalloc_array(ARRAY_SIZE(min_values), sizeof(__be32), |