Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1787063pxf; Fri, 26 Mar 2021 15:02:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuouB75mwWN5NyUvekhUZFTKQvBqQbwjb5bPK22SjMTrZOgHzDIG8cdwdizm0bph+gUND2 X-Received: by 2002:aa7:c503:: with SMTP id o3mr4490311edq.224.1616796151855; Fri, 26 Mar 2021 15:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616796151; cv=none; d=google.com; s=arc-20160816; b=Z3VCyVu04AfxVIInZrwdOTCfQacQjMDChSg6OrB6rhsffYPCTirBcqGTOygZfWWBFS sQqcspt5C4734S2mcLIh70fcVkYLI4lEKBqm/RytNNvD4n4QgkYLN+6A9jrXlWDCgHDq QJuyRV1TjBEQq6Sk1BAnOwOdaDKAyOXsI4ClZn3GjjidkkRxvGOCOdtdVZ2IjrZQkn91 htbJSAnNadHgAdPBA2bJ9EvjjmAParkty4oKtkJ3gDs9AoIIrCQGdYCp7fucbDLQDPej DmJROkAfy5azoibWzMaKCmYT4mmEhlWNpDSpiCAR7GKnYq9hzmK87Hf0P/ebVildEN5U 5dBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=oPOsu9OLZ1xWVtR6YM6kJ1124BtA+mWQ4vkHRMqEvbs=; b=KL+A2N6sWL7RdJfd6WNAdS79Q9hIoi2YCg9pIN/liPOaFjool45JKx+6UHsfvlZQvi RhOw7W4kCXdcW8PBo/stF0maUECGj+Vn8Hdq58z4DYLZef5qAwRLS4VIqB7aOHfgk2zo g1golthNKEBq7KOiGEIfumSajfvq2ONb9P7WJiZLsHGOucQl8ygy0/5B+rZBJMTA6nml zmiar3mDtSmqeOGYw9XQMxfOHb6XCa7M8YsVTfp+SVJ+R9lUU0cDW8PNU+C5lVikkXWL jvZeOiKYB2WBonKYPP6L2RxerCdfVdLBgAKxFMoAy0XfG893FZKuYMdwZD8eae4UbTyA rN8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si7654019ejt.403.2021.03.26.15.02.09; Fri, 26 Mar 2021 15:02:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbhCZWAz (ORCPT + 99 others); Fri, 26 Mar 2021 18:00:55 -0400 Received: from mga04.intel.com ([192.55.52.120]:61331 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230423AbhCZWAV (ORCPT ); Fri, 26 Mar 2021 18:00:21 -0400 IronPort-SDR: 8WnpBTVAzRxOaENDqStrFkD0KijHhNKAKYIfJ+QNlV+KIHa4cjaafWWhPlTHwvpz7ZkPdx+PZh +zlnQDJKsB/g== X-IronPort-AV: E=McAfee;i="6000,8403,9935"; a="188957173" X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="188957173" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2021 15:00:20 -0700 IronPort-SDR: nPJ8jPadMkVbnv7xLbDyKf9HG38G13QAZWtGuntDeJsDiX+xso8g0kvCTDrgIjKW4N4XYVcpI6 /MGS1CplOobA== X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="416706959" Received: from zcmahone-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.255.231.203]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2021 15:00:19 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, linux-kernel@vger.kernel.org, Pierre-Louis Bossart , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Christophe JAILLET Subject: [PATCH 16/17] ASoC: ux500: mop500: rename shadowing variable Date: Fri, 26 Mar 2021 16:59:26 -0500 Message-Id: <20210326215927.936377-17-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210326215927.936377-1-pierre-louis.bossart@linux.intel.com> References: <20210326215927.936377-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cppcheck warning: sound/soc/ux500/mop500.c:143:23: style: Local variable 'mop500_card' shadows outer variable [shadowVariable] struct snd_soc_card *mop500_card = platform_get_drvdata(pdev); ^ sound/soc/ux500/mop500.c:54:28: note: Shadowed declaration static struct snd_soc_card mop500_card = { ^ sound/soc/ux500/mop500.c:143:23: note: Shadow variable struct snd_soc_card *mop500_card = platform_get_drvdata(pdev); ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/ux500/mop500.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c index cdae1190b930..4f41bb0ab2b0 100644 --- a/sound/soc/ux500/mop500.c +++ b/sound/soc/ux500/mop500.c @@ -140,12 +140,12 @@ static int mop500_probe(struct platform_device *pdev) static int mop500_remove(struct platform_device *pdev) { - struct snd_soc_card *mop500_card = platform_get_drvdata(pdev); + struct snd_soc_card *card = platform_get_drvdata(pdev); pr_debug("%s: Enter.\n", __func__); - snd_soc_unregister_card(mop500_card); - mop500_ab8500_remove(mop500_card); + snd_soc_unregister_card(card); + mop500_ab8500_remove(card); mop500_of_node_put(); return 0; -- 2.25.1