• Takashi Sakamoto's avatar
    ALSA: dice: correct variable types for __be32 data · 06f8fc11
    Takashi Sakamoto authored
    commit 3e93d42a upstream.
    
    Some local variables in some functions are typed as unsigned int, while
    __be32 value is assigned to them. This causes sparse warnings.
    
    dice-stream.c:50:17: warning: incorrect type in assignment (different base types)
    dice-stream.c:50:17:    expected unsigned int [unsigned] channel
    dice-stream.c:50:17:    got restricted __be32 [usertype] <noident>
    dice-stream.c:74:17: warning: incorrect type in assignment (different base types)
    dice-stream.c:74:17:    expected unsigned int [unsigned] channel
    dice-stream.c:74:17:    got restricted __be32 [usertype] <noident>
    
    This commit fixes this bug.
    
    Fixes: 288a8d0c('ALSA: dice: Change the way to start stream')
    Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
    06f8fc11
dice-stream.c 9.54 KB