Skip to content

Commit

Permalink
ALSA: line6: Remove unused line6_midibuf_skip_message()
Browse files Browse the repository at this point in the history
Use of this function ended with commits 3e58c86 ("staging: line6:
drop midi_mask_receive") and af89d28 ("staging: line6: drop
midi_mask_transmit".)

[Removed the corresponding line in midibuf.h, too -- tiwai]

Signed-off-by: Chris Rorvick <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
crorvick authored and tiwai committed Feb 1, 2015
1 parent 642adf5 commit 5864728
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions sound/usb/line6/midibuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,17 +245,6 @@ int line6_midibuf_ignore(struct midi_buffer *this, int length)
return length;
}

int line6_midibuf_skip_message(struct midi_buffer *this, unsigned short mask)
{
int cmd = this->command_prev;

if ((cmd >= 0x80) && (cmd < 0xf0))
if ((mask & (1 << (cmd & 0x0f))) == 0)
return 1;

return 0;
}

void line6_midibuf_destroy(struct midi_buffer *this)
{
kfree(this->buf);
Expand Down
2 changes: 0 additions & 2 deletions sound/usb/line6/midibuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split);
extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data,
int length);
extern void line6_midibuf_reset(struct midi_buffer *mb);
extern int line6_midibuf_skip_message(struct midi_buffer *mb,
unsigned short mask);
extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
int length);

Expand Down

0 comments on commit 5864728

Please sign in to comment.