ALSA: firewire-tascam: remove buffer initialization in driver side
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 20 Oct 2015 14:46:55 +0000 (23:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Oct 2015 15:49:13 +0000 (17:49 +0200)
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@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam-transaction.c

index d4f64ae182e730820856765b9f662bff6fe97a7a..370f9323b3df76d56841a3c928697a28d35799a4 100644 (file)
@@ -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;
This page took 0.026663 seconds and 5 git commands to generate.