diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-10-20 16:46:56 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-20 17:49:14 +0200 |
commit | 516a30615635fdec6a298d7b7cedca1270bc641c (patch) | |
tree | 3a27cf9570e1cf94b875e65420a4b3adc8732d7e /sound/firewire/tascam/tascam-transaction.c | |
parent | ALSA: firewire-tascam: remove buffer initialization in driver side (diff) | |
download | linux-516a30615635fdec6a298d7b7cedca1270bc641c.tar.xz linux-516a30615635fdec6a298d7b7cedca1270bc641c.zip |
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: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/tascam/tascam-transaction.c')
-rw-r--r-- | sound/firewire/tascam/tascam-transaction.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/firewire/tascam/tascam-transaction.c b/sound/firewire/tascam/tascam-transaction.c index 370f9323b3df..7c8068469f57 100644 --- a/sound/firewire/tascam/tascam-transaction.c +++ b/sound/firewire/tascam/tascam-transaction.c @@ -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) |