ALSA: firewire-tascam: fix loop condition with some readable variables
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 20 Oct 2015 14:46:58 +0000 (23:46 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Oct 2015 15:49:15 +0000 (17:49 +0200)
commit123990e930ac1213df2dfa0e2d57cfc0e1dd5e02
tree71ecd11a271221c0ae78abfbe8a7a92a95f683e1
parentb7ab614f301741ae3cb61fb6a90e290083d3b95d
ALSA: firewire-tascam: fix loop condition with some readable variables

In transactions for MIDI messages, the first byte is used for label and
the rest is for MIDI bytes. In current code, these are handled correctly,
while there's a small mistake for loop condition to include meaningless
statement.

This commit adds two local variables for them and improve the loop
condition.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam-transaction.c