diff options
author | Chris Rorvick <chris@rorvick.com> | 2015-02-01 02:01:09 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-01 03:35:25 -0500 |
commit | 58647286abcd2b7ca940b33cc0817443b8851f36 (patch) | |
tree | 9aa9f080e486365cbd36b1800eea21c5c6c7acad /sound/usb | |
parent | 642adf5f9a9c8dd8f730c4f034608e4d086abab8 (diff) |
ALSA: line6: Remove unused line6_midibuf_skip_message()
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>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/line6/midibuf.c | 11 | ||||
-rw-r--r-- | sound/usb/line6/midibuf.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/sound/usb/line6/midibuf.c b/sound/usb/line6/midibuf.c index 3b8b59b34908..36a610ba342e 100644 --- a/sound/usb/line6/midibuf.c +++ b/sound/usb/line6/midibuf.c | |||
@@ -245,17 +245,6 @@ int line6_midibuf_ignore(struct midi_buffer *this, int length) | |||
245 | return length; | 245 | return length; |
246 | } | 246 | } |
247 | 247 | ||
248 | int line6_midibuf_skip_message(struct midi_buffer *this, unsigned short mask) | ||
249 | { | ||
250 | int cmd = this->command_prev; | ||
251 | |||
252 | if ((cmd >= 0x80) && (cmd < 0xf0)) | ||
253 | if ((mask & (1 << (cmd & 0x0f))) == 0) | ||
254 | return 1; | ||
255 | |||
256 | return 0; | ||
257 | } | ||
258 | |||
259 | void line6_midibuf_destroy(struct midi_buffer *this) | 248 | void line6_midibuf_destroy(struct midi_buffer *this) |
260 | { | 249 | { |
261 | kfree(this->buf); | 250 | kfree(this->buf); |
diff --git a/sound/usb/line6/midibuf.h b/sound/usb/line6/midibuf.h index 1d9b59ac1e59..6ea21ffb6627 100644 --- a/sound/usb/line6/midibuf.h +++ b/sound/usb/line6/midibuf.h | |||
@@ -29,8 +29,6 @@ extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split); | |||
29 | extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data, | 29 | extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data, |
30 | int length); | 30 | int length); |
31 | extern void line6_midibuf_reset(struct midi_buffer *mb); | 31 | extern void line6_midibuf_reset(struct midi_buffer *mb); |
32 | extern int line6_midibuf_skip_message(struct midi_buffer *mb, | ||
33 | unsigned short mask); | ||
34 | extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data, | 32 | extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data, |
35 | int length); | 33 | int length); |
36 | 34 | ||