소스 검색

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>
Takashi Sakamoto 10 년 전
부모
커밋
516a306156
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      sound/firewire/tascam/tascam-transaction.c

+ 1 - 3
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)