Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1480063pxf; Fri, 12 Mar 2021 10:24:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKorh/DH9z4oEdt8gT8Ey+MYbXGGlCE8+E5fwuW5ygTvfojGOKfRc7W0l5tuztXcOlAkLK X-Received: by 2002:aa7:c889:: with SMTP id p9mr15645117eds.82.1615573491495; Fri, 12 Mar 2021 10:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573491; cv=none; d=google.com; s=arc-20160816; b=vne7USt0pmMJp0mxkMdP8EM0nPNk5z8qEA9aCqGv8ZWZW7iXutLXi9jhXUSht5njgO JnlPKDeVr5B6Qmv2fAgNec8sw5xDfqqETIf27zoFqRSgqWRtOrJsSSJmMD6FUuNyQTMd 9VE7nLhiuCwOAUxNdJrKMEy00NYcZ0qXFN1D9Ufm7kcKJJtiebJtAnG9oyr5f+7qTAr0 ejtKYRWj60eqxTfzhacQL/nKXiDT0tF55xyW1B6xShm2exe+uPiIMcW+aylA+B293HQT V9XO/zG8kuMXLqGVEAgbKu2kY2wjitB6eDUF2Gh7CzSkOGnFJdAfAu4H1dvuPxX7f/qx DaeQ== 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=jNrv9oFGBRit/p5tiw2ACYyXAUizPl2DBerHoQFbnCc=; b=uWdxhL9QE7wtsUjZzWHw6ia4JkyHi5n6zgEEocZjNaJZSdbYAXtOOJA7r8xn/I0gfZ 9zxrfsAjcM6pSQCqJp2XtDOALs7Je2/J1TonB+4EyyBn5bwsr7foYJN4qJ9KVag1aiPM 0CrzMqaEg0PleeQVDF9C8GPMjAafBBfBvz2xhgdUbdWZ2EonK/TMcaQJ9iAqq05fBGz2 FUm/u5sQaYt22dZGK6Gb1c0WOq6hbdN3mnqlLVGBAW7eScQ//FsydLcZF8aQ4bjluojp rB6Qod8S0UGu/XkF5fElSAjFSyP+sdEFulqcDp9jp/cWPmvpwA36/zkMg5V8uHC3oWqg /AqA== 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 u4si4388490ejc.113.2021.03.12.10.24.28; Fri, 12 Mar 2021 10:24:51 -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 S233119AbhCLSXW (ORCPT + 99 others); Fri, 12 Mar 2021 13:23:22 -0500 Received: from mga02.intel.com ([134.134.136.20]:36921 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233121AbhCLSXM (ORCPT ); Fri, 12 Mar 2021 13:23:12 -0500 IronPort-SDR: ubWGbqUyZLqH029yTx2wfx20yBxAIGlQEM69lHJ5kx6B6O89t+tBv1QtzRVj6cW6VDa10doUsL LIoRcYrdiJ2Q== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="175999086" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="175999086" 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:10 -0800 IronPort-SDR: YYsm2Ig+h24qBreBc1FvLpGhz8KQjbWRRMvYVLCGSOus4fmmuW8bxX/FbmI2ayPnEZg0oVoG6p 8Rr3YqnMOXow== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377791904" 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:09 -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 , Lars-Peter Clausen , =?UTF-8?q?Nuno=20S=C3=A1?= , Liam Girdwood , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 03/23] ASoC: adau1977: remove useless return Date: Fri, 12 Mar 2021 12:22:26 -0600 Message-Id: <20210312182246.5153-4-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/adau1977.c:242:9: warning: Identical condition and return expression 'ret', return value is always 0 [identicalConditionAfterEarlyExit] return ret; ^ sound/soc/codecs/adau1977.c:239:6: note: If condition 'ret' is true, the function will return/exit if (ret) ^ sound/soc/codecs/adau1977.c:242:9: note: Returning identical expression 'ret' return ret; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/adau1977.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c index 8260f49caa24..e347a48131d1 100644 --- a/sound/soc/codecs/adau1977.c +++ b/sound/soc/codecs/adau1977.c @@ -236,8 +236,6 @@ static int adau1977_reset(struct adau1977 *adau1977) ret = regmap_write(adau1977->regmap, ADAU1977_REG_POWER, ADAU1977_POWER_RESET); regcache_cache_bypass(adau1977->regmap, false); - if (ret) - return ret; return ret; } -- 2.25.1