[alsa-devel] [PATCH 2/5] ALSA: firewire-tascam: change type of valiables according to function prototype
Takashi Sakamoto
o-takashi at sakamocchi.jp
Tue Oct 20 16:46:56 CEST 2015
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 at sakamocchi.jp>
---
sound/firewire/tascam/tascam-transaction.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/firewire/tascam/tascam-transaction.c b/sound/firewire/tascam/tascam-transaction.c
index 370f932..7c80684 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)
--
2.1.4
More information about the Alsa-devel
mailing list