From patchwork Tue Sep 9 18:42:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 4872381 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 3AD069F32F for ; Tue, 9 Sep 2014 18:45:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FBF82017E for ; Tue, 9 Sep 2014 18:45:00 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 4CD232017A for ; Tue, 9 Sep 2014 18:44:59 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 32CB52654D1; Tue, 9 Sep 2014 20:44:56 +0200 (CEST) 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 462A5265357; Tue, 9 Sep 2014 20:43:03 +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 B8AA6265338; Tue, 9 Sep 2014 20:43:00 +0200 (CEST) Received: from smtp-out-205.synserver.de (smtp-out-205.synserver.de [212.40.185.205]) by alsa0.perex.cz (Postfix) with ESMTP id 893B7265335 for ; Tue, 9 Sep 2014 20:42:48 +0200 (CEST) Received: (qmail 8164 invoked by uid 0); 9 Sep 2014 18:42:48 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 7785 Received: from ppp-212-114-237-242.dynamic.mnet-online.de (HELO lars-adi-laptop.fritz.box) [212.114.237.242] by 217.119.54.81 with SMTP; 9 Sep 2014 18:42:47 -0000 From: Lars-Peter Clausen To: Mark Brown , Liam Girdwood Date: Tue, 9 Sep 2014 20:42:44 +0200 Message-Id: <1410288165-32127-5-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1410288165-32127-1-git-send-email-lars@metafoo.de> References: <1410288165-32127-1-git-send-email-lars@metafoo.de> Cc: Brian Austin , alsa-devel@alsa-project.org, Support Opensource , Paul Handrigan , Lars-Peter Clausen Subject: [alsa-devel] [PATCH 5/6] ASoC: da732x: Remove unused codec field form da732x_priv struct 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 The field is initialized in the probe callback, but never used again. So it can be removed. Signed-off-by: Lars-Peter Clausen --- sound/soc/codecs/da732x.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c index edcbfea..c28cf33 100644 --- a/sound/soc/codecs/da732x.c +++ b/sound/soc/codecs/da732x.c @@ -35,7 +35,6 @@ struct da732x_priv { struct regmap *regmap; - struct snd_soc_codec *codec; unsigned int sysclk; bool pll_en; @@ -1512,8 +1511,6 @@ static int da732x_probe(struct snd_soc_codec *codec) { struct da732x_priv *da732x = snd_soc_codec_get_drvdata(codec); - da732x->codec = codec; - da732x_set_bias_level(codec, SND_SOC_BIAS_STANDBY); return 0;