From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752532AbaLYKQf (ORCPT ); Thu, 25 Dec 2014 05:16:35 -0500 Received: from cantor2.suse.de ([195.135.220.15]:60470 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752508AbaLYKQc (ORCPT ); Thu, 25 Dec 2014 05:16:32 -0500 Date: Thu, 25 Dec 2014 11:16:31 +0100 Message-ID: From: Takashi Iwai To: Rickard Strandqvist Cc: Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sound: pci: hda: patch_analog.c: Remove unused function In-Reply-To: <1419114679-11752-1-git-send-email-rickard_strandqvist@spectrumdigital.se> References: <1419114679-11752-1-git-send-email-rickard_strandqvist@spectrumdigital.se> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.4 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 >