From: Takashi Sakamoto Date: Tue, 20 Oct 2015 14:46:56 +0000 (+0900) Subject: ALSA: firewire-tascam: change type of valiables according to function prototype X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=516a30615635fdec6a298d7b7cedca1270bc641c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Takashi Iwai --- 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)