ALSA: line6: Remove unused line6_midibuf_skip_message()
authorChris Rorvick <chris@rorvick.com>
Sun, 1 Feb 2015 07:01:09 +0000 (01:01 -0600)
committerTakashi Iwai <tiwai@suse.de>
Sun, 1 Feb 2015 08:35:25 +0000 (09:35 +0100)
Use of this function ended with commits 3e58c868db1d ("staging: line6:
drop midi_mask_receive") and af89d2897a71 ("staging: line6: drop
midi_mask_transmit".)

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

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/midibuf.c
sound/usb/line6/midibuf.h

index 3b8b59b349086dc23d111bc41978612896642ab3..36a610ba342ec190b7b44c4a842fe93251380241 100644 (file)
@@ -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);
index 1d9b59ac1e59a98685fed62a1debcc42636987de..6ea21ffb662715a54dc5aa39bba78ff3196c671b 100644 (file)
@@ -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);
 
This page took 0.026527 seconds and 5 git commands to generate.