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>
{
struct snd_tscm *tscm = substream->rmidi->private_data;
unsigned int port = substream->number;
{
struct snd_tscm *tscm = substream->rmidi->private_data;
unsigned int port = substream->number;
- unsigned int len;
- unsigned int i;
len = snd_rawmidi_transmit_peek(substream, buf + 1, 3);
if (len == 0)
len = snd_rawmidi_transmit_peek(substream, buf + 1, 3);
if (len == 0)