ALSA: firewire-tascam: change type of valiables according to function prototype
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 20 Oct 2015 14:46:56 +0000 (23:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Oct 2015 15:49:14 +0000 (17:49 +0200)
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: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam-transaction.c

index 370f9323b3df76d56841a3c928697a28d35799a4..7c8068469f578b4210996c2bd81eccde25a64c07 100644 (file)
@@ -62,10 +62,8 @@ static int fill_message(struct snd_rawmidi_substream *substream, u8 *buf)
 {
        struct snd_tscm *tscm = substream->rmidi->private_data;
        unsigned int port = substream->number;
-       unsigned int len;
-       unsigned int i;
+       int i, len, consume;
        u8 status;
-       int consume;
 
        len = snd_rawmidi_transmit_peek(substream, buf + 1, 3);
        if (len == 0)
This page took 0.028306 seconds and 5 git commands to generate.