--- drivers/staging/line6/midibuf.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/line6/midibuf.c b/drivers/staging/line6/midibuf.c index ab0a5f3..fb2658d 100644 --- a/drivers/staging/line6/midibuf.c +++ b/drivers/staging/line6/midibuf.c @@ -76,7 +76,8 @@ int midibuf_bytes_free(struct MidiBuffer *this) return midibuf_is_full(this) ? 0 : - (this->pos_read - this->pos_write + this->size - 1) % this->size + 1; + (this->pos_read - this->pos_write + this->size - 1) % \ + this->size + 1; } int midibuf_bytes_used(struct MidiBuffer *this) @@ -84,7 +85,8 @@ int midibuf_bytes_used(struct MidiBuffer *this) return midibuf_is_empty(this) ? 0 : - (this->pos_write - this->pos_read + this->size - 1) % this->size + 1; + (this->pos_write - this->pos_read + this->size - 1) % \ + this->size + 1; } int midibuf_write(struct MidiBuffer *this, unsigned char *data, int length) @@ -160,7 +162,8 @@ int midibuf_read(struct MidiBuffer *this, unsigned char *data, int length) this->command_prev = command; } else { if (this->command_prev > 0) { - int midi_length_prev = midibuf_message_length(this->command_prev); + int midi_length_prev = \ + midibuf_message_length(this->command_prev); if (midi_length_prev > 0) { midi_length = midi_length_prev - 1; -- 1.6.3.3 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel