summaryrefslogtreecommitdiffstats
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 8d6eefa0d936..6a70463f82c4 100644
--- a/sound/usb/line6/midibuf.c
+++ b/sound/usb/line6/midibuf.c
@@ -159,7 +159,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