Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1480300pxf; Fri, 12 Mar 2021 10:25:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsWPYRVRNRoragnb3+EALW9F8U8oerKUVcFkK3K75lEXl8VHGV7sdI5MduHEdjvC6lUbvB X-Received: by 2002:a17:906:94ca:: with SMTP id d10mr9921970ejy.107.1615573512508; Fri, 12 Mar 2021 10:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573512; cv=none; d=google.com; s=arc-20160816; b=tO08+ZV67HGa3WnZoNlwP3SsHJCitpLv6BNC9xe/M14+CgwkihkQmwlUynOp2fi4QF e4b9VGqGQGbeOclzj43RJrMDGwF8XQivhG8uvk2mgxiG5CtKxDTHOmj5RahN93VRQzj6 YZt2qh+Cv/QvLUOqb44NYe4X5qTvxktoSjzZ9FITOg7GkPtHBcEkrVnqhezpHoSoXTXB WTKI6iBHPyf7Vnj+FlQgHLcB4nXzEp6eyyBfcaqNFZmPn+mwdLx7/1oMzUyq79WCkdbx O1LNtlTKFVjjUp44arF0tO+s8bOii0RXZ3rGM2ma/LPSQpBfZO8rWhIRUwQyHDprZFye jDPg== 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=BX0zOEAr1kRDPwJeghU3YB0tGE+E7AADM1kvYibHDOQ=; b=X+kXH0pCu10wRFsCtjc42sYx2gcLGDiEiQ0BKJFGe2+BPIt0ESDUvbXfq4yjrMj8n0 yDeyOkJwzHmsk5QIkQGB3+jNfdBmc4XF4eNwtW4dtxua9QE4kczkEUMX9EPq0K7/aPd0 5eqHzLA32hDirwqK9Im3/yraer5HhRuYhwjwc4ls62XCWaGvXnNBc/pUqAts40KpdH3d 1tka4H/QQ17XELrLZW6B8EtHi5OUbYl/086Lv+4+/Kc8CWUwrdiXyQOfE4+qnTnqGXd6 veTQ2uIFX/mFlC7PYcxj9WgBNUAP9q5u5P4x+iaCgBGsEu9r7pzb09cxoNOMiMnN6gF/ PNoQ== 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 gj9si4917675ejb.552.2021.03.12.10.24.48; Fri, 12 Mar 2021 10:25:12 -0800 (PST) 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 S233308AbhCLSXx (ORCPT + 99 others); Fri, 12 Mar 2021 13:23:53 -0500 Received: from mga02.intel.com ([134.134.136.20]:36936 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233134AbhCLSXT (ORCPT ); Fri, 12 Mar 2021 13:23:19 -0500 IronPort-SDR: Raee1t6iXiJ3ZkMQkugpCSpwQgNBu/JZmxly74RZGkrw+qu/AQBjfNZgNoyUwfxibY+ngPvwbC zvOCTh1vyGtw== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="175999105" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="175999105" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 10:23:19 -0800 IronPort-SDR: lzN1KljaGYYjbG1Oo2IpFujU1ijS7jTgsFBUG2pNEQ3BVCmRNUXpt2cdgFd+LdC8sbakb1d0jH u+jq1nOudkmg== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377791933" Received: from amiteshs-mobl.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.212.37.30]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 10:23:18 -0800 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 , Support Opensource , Liam Girdwood , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 07/23] ASoC: da7219-aad: remove useless initialization Date: Fri, 12 Mar 2021 12:22:30 -0600 Message-Id: <20210312182246.5153-8-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210312182246.5153-1-pierre-louis.bossart@linux.intel.com> References: <20210312182246.5153-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/codecs/da7219-aad.c:118:22: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int report = 0, ret = 0; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/da7219-aad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/da7219-aad.c b/sound/soc/codecs/da7219-aad.c index 48081d71c22c..7998fdd3b378 100644 --- a/sound/soc/codecs/da7219-aad.c +++ b/sound/soc/codecs/da7219-aad.c @@ -115,7 +115,7 @@ static void da7219_aad_hptest_work(struct work_struct *work) __le16 tonegen_freq_hptest; u8 pll_srm_sts, pll_ctrl, gain_ramp_ctrl, accdet_cfg8; - int report = 0, ret = 0; + int report = 0, ret; /* Lock DAPM, Kcontrols affected by this test and the PLL */ snd_soc_dapm_mutex_lock(dapm); -- 2.25.1