From patchwork Sat Feb 22 15:00:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Engelmayer X-Patchwork-Id: 3701211 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F0A8EBF13A for ; Sat, 22 Feb 2014 15:00:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 291A7201DD for ; Sat, 22 Feb 2014 15:00:48 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8EC47201C8 for ; Sat, 22 Feb 2014 15:00:44 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A76D4261B20; Sat, 22 Feb 2014 16:00:42 +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,FREEMAIL_FROM, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 39042261B02; Sat, 22 Feb 2014 16:00:32 +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 31BF6261B08; Sat, 22 Feb 2014 16:00:30 +0100 (CET) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by alsa0.perex.cz (Postfix) with ESMTP id 5509C261AE9 for ; Sat, 22 Feb 2014 16:00:23 +0100 (CET) Received: from spike ([81.217.122.98]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MNIi1-1WJfqO2jd3-006sXW for ; Sat, 22 Feb 2014 16:00:22 +0100 Date: Sat, 22 Feb 2014 16:00:16 +0100 From: Christian Engelmayer To: Mark Brown , Wei Yongjun Message-ID: <20140222160016.372a3683@spike> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-Provags-ID: V03:K0:owOpPjhmz/bT+COky/yjLoDEi943+8FRBzHE5eywSUYx7veGZHN 1Rck79x1VYJVmsNZlNnp2YTG4BI3ul3qXPpOvReyXoG86f6mTgw9TWxk+SwDjE3MVb6dDLQ GNMhzlCl0MIumsBnOj2u64UIGkeTl0+CwAsZx3NHgcBNfnl6VWKQlP355NT40fG8nliyEZl rfG5pZsQiDiOnMtAvZnTA== Cc: alsa-devel@alsa-project.org, Takashi Iwai , patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org, Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: wm8993: Remove unused pointer in wm8993_remove() 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 88b5bdfd (ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data) eliminated the last user of driver data pointer 'wm8993' in function wm8993_remove() - Thus remove it. Detected by Coverity: CID 1186208. Signed-off-by: Christian Engelmayer --- Applies against branch for-next in tree git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git --- sound/soc/codecs/wm8993.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 2ee23a3..f7978b3 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c @@ -1559,8 +1559,6 @@ static int wm8993_probe(struct snd_soc_codec *codec) static int wm8993_remove(struct snd_soc_codec *codec) { - struct wm8993_priv *wm8993 = snd_soc_codec_get_drvdata(codec); - wm8993_set_bias_level(codec, SND_SOC_BIAS_OFF); return 0; }