From: Takashi Iwai <tiwai@suse.de>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Jaroslav Kysela <perex@perex.cz>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sound: pci: hda: patch_analog.c: Remove unused function
Date: Thu, 25 Dec 2014 11:16:31 +0100 [thread overview]
Message-ID: <s5hsig4hw5c.wl-tiwai@suse.de> (raw)
In-Reply-To: <1419114679-11752-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
At Sat, 20 Dec 2014 23:31:19 +0100,
Rickard Strandqvist wrote:
>
> Remove the function ad198x_ch_mode_get() 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>
As Raymond suggested, remove the whole dead #ifdef block instead.
It's a left-over code I forgot to remove.
thanks,
Takashi
> ---
> sound/pci/hda/patch_analog.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
> index 06275f8..9d5257b 100644
> --- a/sound/pci/hda/patch_analog.c
> +++ b/sound/pci/hda/patch_analog.c
> @@ -707,15 +707,6 @@ static int ad198x_ch_mode_info(struct snd_kcontrol *kcontrol,
> spec->num_channel_mode);
> }
>
> -static int ad198x_ch_mode_get(struct snd_kcontrol *kcontrol,
> - struct snd_ctl_elem_value *ucontrol)
> -{
> - struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
> - struct ad198x_spec *spec = codec->spec;
> - return snd_hda_ch_mode_get(codec, ucontrol, spec->channel_mode,
> - spec->num_channel_mode, spec->multiout.max_channels);
> -}
> -
> static int ad198x_ch_mode_put(struct snd_kcontrol *kcontrol,
> struct snd_ctl_elem_value *ucontrol)
> {
> --
> 1.7.10.4
>
prev parent reply other threads:[~2014-12-25 10:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-20 22:31 Rickard Strandqvist
[not found] ` <CAN8cciaCGXHJaxQfkgvwCehwAcZvH_m6QaSTv_aUgSd1Y4x+og@mail.gmail.com>
2014-12-21 11:40 ` [alsa-devel] " Rickard Strandqvist
2014-12-25 10:16 ` 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=s5hsig4hw5c.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--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®