All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] firewire: ohci:  Remove unused function
Date: Thu, 22 Jan 2015 11:16:26 +0100	[thread overview]
Message-ID: <20150122111626.463882b2@kant> (raw)
In-Reply-To: <1420232563-3464-1-git-send-email-rickard_strandqvist@spectrumdigital.se>

On Jan 02 Rickard Strandqvist wrote:
> Remove the function ar_prev_buffer_index() that is not used anywhere.
> 
> This was partially found by using a static code analysis program called cppcheck.
> 
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>

Committed to linux1394.git, thanks.  (The function was used in an earlier
version of patch "firewire: ohci: AR rewrite" which later became commit
7a39d8b82165.  In a revision of the patch, the use but not the definition
of this function was removed.)

> ---
>  drivers/firewire/ohci.c |    5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
> index a66a321..9662daa 100644
> --- a/drivers/firewire/ohci.c
> +++ b/drivers/firewire/ohci.c
> @@ -719,11 +719,6 @@ static inline unsigned int ar_next_buffer_index(unsigned int index)
>  	return (index + 1) % AR_BUFFERS;
>  }
>  
> -static inline unsigned int ar_prev_buffer_index(unsigned int index)
> -{
> -	return (index - 1 + AR_BUFFERS) % AR_BUFFERS;
> -}
> -
>  static inline unsigned int ar_first_buffer_index(struct ar_context *ctx)
>  {
>  	return ar_next_buffer_index(ctx->last_buffer_index);

-- 
Stefan Richter
-=====-===== ---= =-==-
http://arcgraph.de/sr/

      reply	other threads:[~2015-01-22 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-02 21:02 [PATCH] firewire: ohci: Remove unused function Rickard Strandqvist
2015-01-22 10:16 ` Stefan Richter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150122111626.463882b2@kant \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=rickard_strandqvist@spectrumdigital.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.