mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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: <[email protected]> # v3.16+
Signed-off-by: Takashi Sakamoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
1 parent
8a6c55d0f8
commit
f2bbdbcb07
1 file changed
+1
-2
@@ -252,8 +252,7 @@ end:
|
||||
return err;
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s)
|
||||
static int map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s)
|
||||
{
|
||||
unsigned int sec, sections, ch, channels;
|
||||
unsigned int pcm, midi, location;
|
||||
|
||||
Reference in new issue
Block a user