From patchwork Sat Dec 20 22:31:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5523481 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BDA499F30B for ; Sat, 20 Dec 2014 23:57:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E702D20160 for ; Sat, 20 Dec 2014 23:57:08 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 13EEB20109 for ; Sat, 20 Dec 2014 23:57:07 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 417672652E7; Sun, 21 Dec 2014 00:57:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 5989A265684; Sun, 21 Dec 2014 00:44:44 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6F3EF265680; Sun, 21 Dec 2014 00:44:40 +0100 (CET) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by alsa0.perex.cz (Postfix) with ESMTP id 8727B2658DF for ; Sat, 20 Dec 2014 23:28:32 +0100 (CET) Received: by mail-wi0-f180.google.com with SMTP id n3so4931972wiv.7 for ; Sat, 20 Dec 2014 14:28:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zzXp5dvqildBYO/aE7oqIRQVrpMnmqAFOFC1QxRiG+Q=; b=kITK2J41jk9ha1sxUWEb89Rqjd3p3ren0k/9568AkxKAw6/HXfXUb6csjvhd2HT2oz Fge2eIuJxM57WJtLIvaqXDE2jp6oR6At7WpP3C80jJRyUBAy3B6tsNGyp2RC1P5FH0/c Dr836VkAcPVnq8SWSRqYqE6RyE6EsvSYTINSZpEFeZXL+rEhlLXa9nDfWWWi/uJsRNFO rPNceSeKe5yLediz3Q3Sjpl54AgYid4xWOADtpATyR+nYQTnTa+H0N+LriUfuU6w+9dn CQQfDrgM6rxITBfOpVNlBrh/WF7hBY1RInyUR9NNO9Dpp09i0grQzZd8ozm8IQPWw7n9 gJdw== X-Gm-Message-State: ALoCoQkkUmGUNEZ5aMNU6lrS8HcdcT7qRSlzpn6NOdVtqUriV+3HPOIHYlz4lduUVEtKyn2xnaUB X-Received: by 10.194.189.138 with SMTP id gi10mr28496568wjc.86.1419114512156; Sat, 20 Dec 2014 14:28:32 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id ei5sm7361123wid.2.2014.12.20.14.28.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Dec 2014 14:28:31 -0800 (PST) From: Rickard Strandqvist To: Jaroslav Kysela , Takashi Iwai Date: Sat, 20 Dec 2014 23:31:19 +0100 Message-Id: <1419114679-11752-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Rickard Strandqvist Subject: [alsa-devel] [PATCH] sound: pci: hda: patch_analog.c: Remove unused function X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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) {