ALSA: bebob: Fix prototype of helper function to return negative value

A helper function of ALSA bebob driver returns negative value in a
function which has a prototype to return unsigned value.

This commit fixes it by changing the prototype.

Fixes: eb7b3a056c ("ALSA: bebob: Add commands and connections/streams management")
Cc: <stable@vger.kernel.org> # v3.16+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191026030620.12077-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Sakamoto 2019-10-26 12:06:20 +09:00 коммит произвёл Takashi Iwai
Родитель 8a6c55d0f8
Коммит f2bbdbcb07
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -252,8 +252,7 @@ end:
return err; return err;
} }
static unsigned int static int map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s)
map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s)
{ {
unsigned int sec, sections, ch, channels; unsigned int sec, sections, ch, channels;
unsigned int pcm, midi, location; unsigned int pcm, midi, location;