]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dice: assign converted data to the same type of variable
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 18 Oct 2015 13:39:50 +0000 (22:39 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Oct 2015 09:57:01 +0000 (11:57 +0200)
commit7ab042731781a8a8ae4bf881bd31e8dcedf913db
treea382363ac119f22a3c61b1485b255f8a237d8d0b
parent0e692c8c6993817bced63aea035835bc11b267d6
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: 2a85ce352ebf('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>
sound/firewire/dice/dice.c