From patchwork Tue May 23 19:05:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 9743225 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B8FBE601C2 for ; Tue, 23 May 2017 19:05:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A87E9287D4 for ; Tue, 23 May 2017 19:05:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D246287DC; Tue, 23 May 2017 19:05:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B486F287D6 for ; Tue, 23 May 2017 19:05:22 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A0FD426716A; Tue, 23 May 2017 21:05:19 +0200 (CEST) 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 A636F26716B; Tue, 23 May 2017 21:05:18 +0200 (CEST) Received: from mail-pf0-f179.google.com (mail-pf0-f179.google.com [209.85.192.179]) by alsa0.perex.cz (Postfix) with ESMTP id 9377E267111 for ; Tue, 23 May 2017 21:05:15 +0200 (CEST) Received: by mail-pf0-f179.google.com with SMTP id 9so123197627pfj.1 for ; Tue, 23 May 2017 12:05:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ytd/q25Iyzah4YbOZYdwdCayPDNWI3v2mHOHvYsc6uE=; b=PfoPr1rpOENnv+dZ4O6pyqSRWWsHIRR/KkVQHBPv32BXEVPxZUYapnMxalAOoUwW6j rJgwVt3Iait17KWgwyFMGvL/ImrpWNdcOjFeJBGXQy13BLqbkuAqS9jGPudtKv3Etf4L 8BgLIxi9nEt2KGLSa7Gzik46eA6Ufn4jQLGvXzEixZVy7s6PYThAU1+q+srtN8ohHUU4 gIsh6b53Sz3arNW+5+Cy6RGGQIkAzXHjXQRj30E+FnxVcoRP1SH/RraINA74mmlgarRc j9uMUuo0tzzDb40gnaL1MAVNvgvDT6veStp4l3NoVi4YemjgjFcsQtxmXsGrl12neJvt 94ig== X-Gm-Message-State: AODbwcASdpo8ZYeNKfpNyMQxKQQjmucCzvPqysgxM0oSZ9dgZBE+kM0m SJsojFaB8zShlbND X-Received: by 10.99.115.5 with SMTP id o5mr34728507pgc.234.1495566314976; Tue, 23 May 2017 12:05:14 -0700 (PDT) Received: from mka.mtv.corp.google.com ([172.22.64.162]) by smtp.gmail.com with ESMTPSA id s75sm2759390pgs.54.2017.05.23.12.05.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 May 2017 12:05:14 -0700 (PDT) From: Matthias Kaehlcke To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Yang A Fang Date: Tue, 23 May 2017 12:05:09 -0700 Message-Id: <20170523190509.59212-1-mka@chromium.org> X-Mailer: git-send-email 2.13.0.219.gdb65acc882-goog Cc: alsa-devel@alsa-project.org, Matthias Kaehlcke , linux-kernel@vger.kernel.org, Douglas Anderson Subject: [alsa-devel] [PATCH] ASoC: cht_bsw_max98090_ti: Remove unused function cht_get_codec_dai() 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 Looks like the function has never been used since it was added by commit 17119a465706 ("ASoC: Intel: Add Cherrytrail & Braswell machine driver cht_bsw_max98090_ti"). Removing it fixes the following warning when building with clang: sound/soc/intel/boards/cht_bsw_max98090_ti.c:42:35: error: unused function 'cht_get_codec_dai' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke --- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sound/soc/intel/boards/cht_bsw_max98090_ti.c b/sound/soc/intel/boards/cht_bsw_max98090_ti.c index 742bc0d4e681..20755ecc7f9e 100644 --- a/sound/soc/intel/boards/cht_bsw_max98090_ti.c +++ b/sound/soc/intel/boards/cht_bsw_max98090_ti.c @@ -39,18 +39,6 @@ struct cht_mc_private { bool ts3a227e_present; }; -static inline struct snd_soc_dai *cht_get_codec_dai(struct snd_soc_card *card) -{ - struct snd_soc_pcm_runtime *rtd; - - list_for_each_entry(rtd, &card->rtd_list, list) { - if (!strncmp(rtd->codec_dai->name, CHT_CODEC_DAI, - strlen(CHT_CODEC_DAI))) - return rtd->codec_dai; - } - return NULL; -} - static const struct snd_soc_dapm_widget cht_dapm_widgets[] = { SND_SOC_DAPM_HP("Headphone", NULL), SND_SOC_DAPM_MIC("Headset Mic", NULL),