提交 516a3061 编写于 作者: T Takashi Sakamoto 提交者: Takashi Iwai

ALSA: firewire-tascam: change type of valiables according to function prototype

In the callback function of asynchronous MIDI port, some local variables
are declared 'unsigned int', while they're assigned to int value of return
from snd_rawmidi_transmit_peek().

This commit fixes the type.
Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 9f9c5617
...@@ -62,10 +62,8 @@ static int fill_message(struct snd_rawmidi_substream *substream, u8 *buf) ...@@ -62,10 +62,8 @@ static int fill_message(struct snd_rawmidi_substream *substream, u8 *buf)
{ {
struct snd_tscm *tscm = substream->rmidi->private_data; struct snd_tscm *tscm = substream->rmidi->private_data;
unsigned int port = substream->number; unsigned int port = substream->number;
unsigned int len; int i, len, consume;
unsigned int i;
u8 status; u8 status;
int consume;
len = snd_rawmidi_transmit_peek(substream, buf + 1, 3); len = snd_rawmidi_transmit_peek(substream, buf + 1, 3);
if (len == 0) if (len == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册