mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Jaroslav Kysela <perex@perex.cz>,
	Benoit Taine <benoit.taine@lip6.fr>,
	Bjorn Helgaas <bhelgaas@google.com>,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sound: pci: azt3328.c:  Cleaning up function that are not used anywhere
Date: Wed, 03 Dec 2014 07:58:43 +0100	[thread overview]
Message-ID: <s5hsigx6wyk.wl-tiwai@suse.de> (raw)
In-Reply-To: <1417561690-27471-1-git-send-email-rickard_strandqvist@spectrumdigital.se>

At Wed,  3 Dec 2014 00:08:09 +0100,
Rickard Strandqvist wrote:
> 
> Remove function snd_azf3328_codec_outl() that is not used anywhere.

This is a small inliner and no problem to keep it.  Removing it breaks
the code balance, and one would have to re-add it if 32bit register
address is needed in the future patch.


thanks,

Takashi

> 
> This was partially found by using a static code analysis program called cppcheck.
> 
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
>  sound/pci/azt3328.c |    9 ---------
>  1 file changed, 9 deletions(-)
> 
> diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c
> index 5a69e26..82da7b9 100644
> --- a/sound/pci/azt3328.c
> +++ b/sound/pci/azt3328.c
> @@ -379,15 +379,6 @@ snd_azf3328_codec_inw(const struct snd_azf3328_codec_data *codec, unsigned reg)
>  }
>  
>  static inline void
> -snd_azf3328_codec_outl(const struct snd_azf3328_codec_data *codec,
> -		       unsigned reg,
> -		       u32 value
> -)
> -{
> -	outl(value, codec->io_base + reg);
> -}
> -
> -static inline void
>  snd_azf3328_codec_outl_multi(const struct snd_azf3328_codec_data *codec,
>  			     unsigned reg, const void *buffer, int count
>  )
> -- 
> 1.7.10.4
> 

      reply	other threads:[~2014-12-03  6:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-02 23:08 Rickard Strandqvist
2014-12-03  6:58 ` Takashi Iwai [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=s5hsigx6wyk.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=benoit.taine@lip6.fr \
    --cc=bhelgaas@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --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 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®