summaryrefslogtreecommitdiff
path: root/sound/usb/line6/midibuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/usb/line6/midibuf.c')
-rw-r--r--sound/usb/line6/midibuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/line6/midibuf.c b/sound/usb/line6/midibuf.c
index 36a610ba342e..c931d48801eb 100644
--- a/sound/usb/line6/midibuf.c
+++ b/sound/usb/line6/midibuf.c
@@ -163,7 +163,7 @@ int line6_midibuf_read(struct midi_buffer *this, unsigned char *data,
int midi_length_prev =
midibuf_message_length(this->command_prev);
- if (midi_length_prev > 0) {
+ if (midi_length_prev > 1) {
midi_length = midi_length_prev - 1;
repeat = 1;
} else