Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1786568pxf; Fri, 26 Mar 2021 15:01:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyann9WZrzBDw29l5HpA+dahhK/2HykJSlzlKO4I3l5amqn1Y/MVXErPIClxDdDxWXyB/cy X-Received: by 2002:a05:6402:3486:: with SMTP id v6mr17360261edc.109.1616796115688; Fri, 26 Mar 2021 15:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616796115; cv=none; d=google.com; s=arc-20160816; b=jEv2LXdPf2vsbX0w2bC6NjfdkSLMv8w8bu8zjoFH6Oe3CkymY99amMcphmPwc+t6j2 woiTOSlEA0AUxmOSzkH1y2JybXkM+vrO1ZJFF9zil0F39X8BDv7RJSBPk1PyOWKcQqGu asQTBFVXg68vDk3X1BKKITL9pTLUrY3MTiQc4gq81mS1rU13Gb42IqBG8BZgY8iQE39E y+9d511/Qdnp3VyWuIPRzmaZGzPBxsBpxjpC3J+64q9pwcaw66SDDLlMMUTySrPDN7RT G2JJlVPqzOsjVRK+iWzXiB+bSU/j8fmZXQuKI+uHo4NKikKc0je9i5sz2i4RGhqWgWuu v5mg== 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=p2zpeT8Pa1Jlgcmx8H/2JJ+FSl1vX/5TqxXWnfkyLD0=; b=xIYSwKQ4zdUKsNqQ799EUQRGvvqX6RquFMJT1jPc0bgANPxylrvlZ16PID3N9UuFUX Vfh3nopjY75sF9X1sE2t2djtgqGs3qh96jIJX2joHFP+Nk87/WRwpWtyhilLn1VAhcsc CwppGy3+UlO4qndTNm4W1QGyg/WBYXZqk4rqWGk1o3UXRq1Tp8BA8B67USSN7vMP7j0V TTn0pgljaisLCqgiUREuC2ObzQCri4LxuXLbYg2sVKdTuk4aZfbT2XEO+q/zTOmdEZ5g pIp5ApYEFQ/ytCAkqwA/Ql79INOXWq1XPFfdADciNiusvK4YlK1Fyoiv+Kdy6ExVapfE VyGw== 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 h16si8238847ede.206.2021.03.26.15.01.33; Fri, 26 Mar 2021 15:01:55 -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 S230440AbhCZWAh (ORCPT + 99 others); Fri, 26 Mar 2021 18:00:37 -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 S230180AbhCZWAF (ORCPT ); Fri, 26 Mar 2021 18:00:05 -0400 IronPort-SDR: 5394x6o8vPOr8XXSG8mkxHab+MLRVJZfW9q9XMqpaMAzlPpgNINbiJ0OVarXtYQIUKiQIVYo6b 2g1mveA9TxiQ== X-IronPort-AV: E=McAfee;i="6000,8403,9935"; a="188957084" X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="188957084" 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:05 -0700 IronPort-SDR: LPvQQBUTZQoub2tgOnyV3oci46fvQuMKxLtmO0TNsF6EKwhztLoDFYJJu9ibZwwz2dP6h5WHcv LChziWVcD0ww== X-IronPort-AV: E=Sophos;i="5.81,281,1610438400"; d="scan'208";a="416706775" 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:03 -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 , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-arm-kernel@lists.infradead.org (moderated list:PXA2xx/PXA3xx SUPPORT) Subject: [PATCH 07/17] ASoC: pxa: remove useless assignment Date: Fri, 26 Mar 2021 16:59:17 -0500 Message-Id: <20210326215927.936377-8-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/pxa/mmp-pcm.c:207:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int ret = 0, stream; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/pxa/mmp-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 53fc49e32fbc..5d520e18e512 100644 --- a/sound/soc/pxa/mmp-pcm.c +++ b/sound/soc/pxa/mmp-pcm.c @@ -204,7 +204,7 @@ static int mmp_pcm_new(struct snd_soc_component *component, { struct snd_pcm_substream *substream; struct snd_pcm *pcm = rtd->pcm; - int ret = 0, stream; + int ret, stream; for (stream = 0; stream < 2; stream++) { substream = pcm->streams[stream].substream; -- 2.25.1