mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove unused functions
@ 2015-02-01  7:01 Chris Rorvick
  2015-02-01  7:01 ` [PATCH 1/2] ALSA: line6: Remove unused line6_midibuf_status() Chris Rorvick
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chris Rorvick @ 2015-02-01  7:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Chris Rorvick, alsa-devel, linux-kernel, Stefan Hajnoczi

Found a couple more things to rip out.

Regards,

Chris

Chris Rorvick (2):
  ALSA: line6: Remove unused line6_midibuf_status()
  ALSA: line6: Remove unused line6_midibuf_skip_message()

 sound/usb/line6/midibuf.c | 18 ------------------
 1 file changed, 18 deletions(-)

-- 
2.1.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] ALSA: line6: Remove unused line6_midibuf_status()
  2015-02-01  7:01 [PATCH 0/2] Remove unused functions Chris Rorvick
@ 2015-02-01  7:01 ` Chris Rorvick
  2015-02-01  7:01 ` [PATCH 2/2] ALSA: line6: Remove unused line6_midibuf_skip_message() Chris Rorvick
  2015-02-01  8:37 ` [PATCH 0/2] Remove unused functions Takashi Iwai
  2 siblings, 0 replies; 5+ messages in thread
From: Chris Rorvick @ 2015-02-01  7:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Chris Rorvick, alsa-devel, linux-kernel, Stefan Hajnoczi

This function has not been used since merging the driver into the kernel
(and a good while before that.)

Signed-off-by: Chris Rorvick <chris@rorvick.com>
---
 sound/usb/line6/midibuf.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/sound/usb/line6/midibuf.c b/sound/usb/line6/midibuf.c
index b5c4d79..3b8b59b 100644
--- a/sound/usb/line6/midibuf.c
+++ b/sound/usb/line6/midibuf.c
@@ -67,13 +67,6 @@ int line6_midibuf_init(struct midi_buffer *this, int size, int split)
 	return 0;
 }
 
-void line6_midibuf_status(struct midi_buffer *this)
-{
-	pr_debug("midibuf size=%d split=%d pos_read=%d pos_write=%d full=%d command_prev=%02x\n",
-		 this->size, this->split, this->pos_read, this->pos_write,
-		 this->full, this->command_prev);
-}
-
 int line6_midibuf_bytes_free(struct midi_buffer *this)
 {
 	return
-- 
2.1.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ALSA: line6: Remove unused line6_midibuf_skip_message()
  2015-02-01  7:01 [PATCH 0/2] Remove unused functions Chris Rorvick
  2015-02-01  7:01 ` [PATCH 1/2] ALSA: line6: Remove unused line6_midibuf_status() Chris Rorvick
@ 2015-02-01  7:01 ` Chris Rorvick
  2015-02-01  8:37 ` [PATCH 0/2] Remove unused functions Takashi Iwai
  2 siblings, 0 replies; 5+ messages in thread
From: Chris Rorvick @ 2015-02-01  7:01 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Chris Rorvick, alsa-devel, linux-kernel, Stefan Hajnoczi

Use of this function ended with commits 3e58c868db1d ("staging: line6:
drop midi_mask_receive") and af89d2897a71 ("staging: line6: drop
midi_mask_transmit".)

Signed-off-by: Chris Rorvick <chris@rorvick.com>
---
 sound/usb/line6/midibuf.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/sound/usb/line6/midibuf.c b/sound/usb/line6/midibuf.c
index 3b8b59b..36a610b 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)
 	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);
-- 
2.1.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] Remove unused functions
  2015-02-01  7:01 [PATCH 0/2] Remove unused functions Chris Rorvick
  2015-02-01  7:01 ` [PATCH 1/2] ALSA: line6: Remove unused line6_midibuf_status() Chris Rorvick
  2015-02-01  7:01 ` [PATCH 2/2] ALSA: line6: Remove unused line6_midibuf_skip_message() Chris Rorvick
@ 2015-02-01  8:37 ` Takashi Iwai
  2015-02-01 13:44   ` Chris Rorvick
  2 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2015-02-01  8:37 UTC (permalink / raw)
  To: Chris Rorvick; +Cc: alsa-devel, linux-kernel, Stefan Hajnoczi

At Sun,  1 Feb 2015 01:01:07 -0600,
Chris Rorvick wrote:
> 
> Found a couple more things to rip out.

Thanks, applied both (with removals of the declarations in midibuf.h,
too).

FYI, I'll stop updating topic/line6 branch from now on.  Please refer
to for-next branch for the further development instead.


Takashi

> 
> Regards,
> 
> Chris
> 
> Chris Rorvick (2):
>   ALSA: line6: Remove unused line6_midibuf_status()
>   ALSA: line6: Remove unused line6_midibuf_skip_message()
> 
>  sound/usb/line6/midibuf.c | 18 ------------------
>  1 file changed, 18 deletions(-)
> 
> -- 
> 2.1.0
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] Remove unused functions
  2015-02-01  8:37 ` [PATCH 0/2] Remove unused functions Takashi Iwai
@ 2015-02-01 13:44   ` Chris Rorvick
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Rorvick @ 2015-02-01 13:44 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, linux-kernel, Stefan Hajnoczi

On Sun, Feb 1, 2015 at 2:37 AM, Takashi Iwai <tiwai@suse.de> wrote:
> At Sun,  1 Feb 2015 01:01:07 -0600, Chris Rorvick wrote:
>>
>> Found a couple more things to rip out.
>
> Thanks, applied both (with removals of the declarations in midibuf.h,
> too).

Oops, thanks for fixing up.

Regards,

Chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-01 13:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-01  7:01 [PATCH 0/2] Remove unused functions Chris Rorvick
2015-02-01  7:01 ` [PATCH 1/2] ALSA: line6: Remove unused line6_midibuf_status() Chris Rorvick
2015-02-01  7:01 ` [PATCH 2/2] ALSA: line6: Remove unused line6_midibuf_skip_message() Chris Rorvick
2015-02-01  8:37 ` [PATCH 0/2] Remove unused functions Takashi Iwai
2015-02-01 13:44   ` Chris Rorvick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®