From patchwork Mon Nov 23 09:35:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 7679191 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9A611BF90C for ; Mon, 23 Nov 2015 09:36:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D17EA2061D for ; Mon, 23 Nov 2015 09:36:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EEA0620384 for ; Mon, 23 Nov 2015 09:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753667AbbKWJgj (ORCPT ); Mon, 23 Nov 2015 04:36:39 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:64362 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753631AbbKWJgh (ORCPT ); Mon, 23 Nov 2015 04:36:37 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0Lwzrl-1aP4VT1Plx-016jBm; Mon, 23 Nov 2015 10:35:58 +0100 From: Arnd Bergmann To: Mark Brown , alsa-devel@alsa-project.org Cc: Mengdong Lin , linux-sh@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kuninori Morimoto , Liam Girdwood Subject: [PATCH] ASoC: rcar: remove unused variable Date: Mon, 23 Nov 2015 10:35:54 +0100 Message-ID: <4929159.b95vLdVRYU@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:Q5nRVPyxQ3TTpTivey/Mi4HY7ZBAsWPPOy/lrzKCXsvKFdgP3dG FFZyEY5VfNts0UzXUpKohwaIl9H+zCuzmnCXvwyfa594/ypLHt0nirBw5IydZE7DCqfUPbk Ch+CGWS0QOLyNe2RdU8D2e+yS2egh9SPXf4AWC5KqeNpLsKnGvav/aZLvg3mZXS5jJHdvdR oixaL4SOUV8FoIXHAhCIQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:gYkx0Feu89o=:dynxLqbnpNGxvmmTeif3TR xtKJiUUCMj4yOwhapvDOZon93DIQ4yORfEPabcck0bWomsI+vvNhvS3bFdf5IXSRVFtlTvFbt IucZs4OTCRCpqhIPRnZj2uCFtqAqgRxaIZ/7lcR82HS1mSDyBacTkSwThtYPpOvs0WsN8GK5h Krew+maVqOzylp25CT39zZAEXzBizD88eA7LQoDEduEFSo0wzJtsUEsWbdsM56L6RxAisULnl 3xXzq05JcX6IpJ15EZX0+CjCsM0BSp/uoVVOjmIAdNuL1y+dz8P9qfdfELFxRJpnt89pQ2l42 qpPqybJCN4PC7//IFBS5pSdT5uNOOIb0I06RZdUOdlr5sX2UCI9aK5xZGIwTDRaGNrq51hzqW RiAeLeDWBb6yfg/EPSjI7EeoXuX0Dim6F92QeoP1n7LJgVXQ40eQdCvcq/XXcZB6on5f+ot8K sWnGboo32xERCQqu5j2ziV93vJCUQD0VLOVgmSxNBIuqZMxnGmNRR8myXB4Gb46g3jpKRqWys TY4OYr9J5kWzTsL3i8OSKjzmdcIkFg8iqsmAMUhVB6CFRGVqGwY246ctZg3hZyjGW0aIkl9Yv tV1b3N6cUg2acz1LMWl5aKP8dUzkj34wMHc3mBAhKfd7kFART+LK+I8Esrf7hQfQQCmBB9NFI mXnJz+N6sWF3p718wIrtXIOtIP2efAtN+shoOe3gYEPni17jIrJDy2VZyZw4J8lF5Wuigi0zk u+xwN/2nFiVpAWAA Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP After a recent cleanup, the soc_card variable became unused and now produces a warning: soc/sh/rcar/core.c: In function '__rsnd_kctrl_new': soc/sh/rcar/core.c:801:23: warning: unused variable 'soc_card' [-Wunused-variable] This removes the variable. Fixes: 1a497983a5ae ("ASoC: Change the PCM runtime array to a list") Signed-off-by: Arnd Bergmann --- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index c6685f14b9cb..90b244c1f526 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -798,7 +798,6 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod, void (*update)(struct rsnd_dai_stream *io, struct rsnd_mod *mod)) { - struct snd_soc_card *soc_card = rtd->card; struct snd_card *card = rtd->card->snd_card; struct snd_kcontrol *kctrl; struct snd_kcontrol_new knew = {