提交 9f9c5617 编写于 作者: T Takashi Sakamoto 提交者: Takashi Iwai

ALSA: firewire-tascam: remove buffer initialization in driver side

The given buffer to callback function is cleared in caller side.

This commit removes buffer initialization in callee side.
Signed-off-by: NTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 c80a1daa
...@@ -67,8 +67,6 @@ static int fill_message(struct snd_rawmidi_substream *substream, u8 *buf) ...@@ -67,8 +67,6 @@ static int fill_message(struct snd_rawmidi_substream *substream, u8 *buf)
u8 status; u8 status;
int consume; int consume;
buf[0] = buf[1] = buf[2] = buf[3] = 0x00;
len = snd_rawmidi_transmit_peek(substream, buf + 1, 3); len = snd_rawmidi_transmit_peek(substream, buf + 1, 3);
if (len == 0) if (len == 0)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册