[alsa-devel] [PATCH 1/3] ALSA: tascam: remove buffer initialization in driver side
Takashi Sakamoto
o-takashi at sakamocchi.jp
Sun Oct 18 12:02:16 CEST 2015
The given buffer to callback function is cleared in caller side.
This commit removes buffer initialization in callee side.
Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
---
sound/firewire/tascam/tascam-transaction.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/firewire/tascam/tascam-transaction.c b/sound/firewire/tascam/tascam-transaction.c
index 1c9a88b..7fcee81 100644
--- a/sound/firewire/tascam/tascam-transaction.c
+++ b/sound/firewire/tascam/tascam-transaction.c
@@ -67,8 +67,6 @@ static int fill_message(struct snd_rawmidi_substream *substream, u8 *buf)
u8 status;
int consume;
- buf[0] = buf[1] = buf[2] = buf[3] = 0x00;
-
len = snd_rawmidi_transmit_peek(substream, buf + 1, 3);
if (len == 0)
return 0;
--
2.1.4
More information about the Alsa-devel
mailing list