Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1291645rwl; Fri, 24 Mar 2023 08:37:56 -0700 (PDT) X-Google-Smtp-Source: AK7set/jIhkPluC2wiZI1kj5HG7CzMlVdBgHhJtvS/El1Pz4NfzXP+ptuoVPpc0ijKXhP8g3VDtv X-Received: by 2002:a17:906:3e5a:b0:930:9197:24d1 with SMTP id t26-20020a1709063e5a00b00930919724d1mr8504874eji.6.1679672276285; Fri, 24 Mar 2023 08:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679672276; cv=none; d=google.com; s=arc-20160816; b=0qBUbBTrs6HnR87aR8VP0MSW2yCwJS24HQqZNptYVgwwQ5R/1XDDYrAgyWhmY/HEv7 XuZmUBAJ4aUCd2F67Nk12pym5nCNwuZhHcS3jYEMmS7xYNxNzAgI9yvz/A++2vgxGzNA sFyF42bJXaUoSgY1jVyOBiFepVtwtIkvM/P/Ojb0GdP3E/yCaN6FHFoh0InWn0dCIqJc hnaF+PXQ3zD1s8M8NY5G8NaKs1KJK5weL8J4KilsfTSK9dmWCyGlIl/OlLH5zxVN/Hh1 tWXQ4CLczbQ0kuTYmKDFUqW3iqXy35ueET6zO5/hvA7vsz4kst5azMiAnpfR59jdfpb/ 7+ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OY6gbhc5rqK8NYwaF/FMiViAq5PqtbZQ2uVGYmYXC0I=; b=dfbwQdP78xA03kJZT4+d8w1VJBiIxZdp/BLJtB2q1VTTnOT15TCFx2cdw0M6/8RC5a TXDrqoOfv4tNTD/EYg4xnSFouGaFSTQqjtJfdCTskC6xgVjZUSPtu8l6l3iB+H1gd5fI MoGZ8+kBBhLN2IsTu82Upsl3F7/rkfpe1O9c7OA3hiV3jzZiE1N9Bm/cdTEujvjL3JEK fauIRSvUZEcazGQkhZ/sDAyNJ5LNIaXQqy5KkjQAwDGetZSngDX50s500Xe/s0VYUWxu fVjW3Awb0B3VX24ps/unuIlMbL6mslqMPz89+ZyGf7/qRaRze7PN/Pg0fIDR80odg4ko fyaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=hukVNPJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a17090690d300b00921792d069dsi21684813ejw.608.2023.03.24.08.37.30; Fri, 24 Mar 2023 08:37:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=hukVNPJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232281AbjCXPcY (ORCPT + 99 others); Fri, 24 Mar 2023 11:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbjCXPcX (ORCPT ); Fri, 24 Mar 2023 11:32:23 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 785011E1FE for ; Fri, 24 Mar 2023 08:32:22 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32OCMYLV023795; Fri, 24 Mar 2023 10:13:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=PODMain02222019; bh=OY6gbhc5rqK8NYwaF/FMiViAq5PqtbZQ2uVGYmYXC0I=; b=hukVNPJxDWEhPwK5RMrGrnxDcVcMD01NYtmPDO2Tm1dQuHvPKKOmKxUC9+029W/NzHcX 2fNpBiUSSqWvpbmx/WisDoN7XE0n2fDg6Sp5Wol8ykJGEAaU1DyvzH1rYTGn4VJ7mNgJ fXYQBHO2KHAUWw2xTihwNxrVNBaABWW/WF0fcidAkhWsKJFKS9XIGcdqeqSIYyv1iYqn IY/9SyyRAjNVPRwJUogpuGUVeuXdWRGHuZjyHV5dum+bHqtlyLLBnHK8Ozpd1yfaX9v/ l11byvjchL6FKUG4UDShLo7ktPQGCxQyfi7VtfvvM3raMWhai5qU5ZkkeA8aGqrZNS2J nQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3pgy30h0qc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Mar 2023 10:13:22 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Fri, 24 Mar 2023 10:13:20 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 24 Mar 2023 10:13:20 -0500 Received: from [198.90.251.127] (edi-sw-dsktp-006.ad.cirrus.com [198.90.251.127]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id D206511D4; Fri, 24 Mar 2023 15:13:19 +0000 (UTC) Message-ID: <11a0b85f-d705-145d-fc6a-1bcbb78d3686@opensource.cirrus.com> Date: Fri, 24 Mar 2023 15:13:19 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH next] ASoC: cs35l56: Remove redundant return statement in cs35l56_spi_probe() Content-Language: en-US To: Harshit Mogalapalli CC: , James Schulman , "David Rhodes" , Lucas Tanure , Liam Girdwood , "Mark Brown" , Jaroslav Kysela , Takashi Iwai , Simon Trimmer , , , References: <20230324145535.3951689-1-harshit.m.mogalapalli@oracle.com> From: Richard Fitzgerald In-Reply-To: <20230324145535.3951689-1-harshit.m.mogalapalli@oracle.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: ScCh2NKqnHL0z9szIBr078J_Gg_bgyKa X-Proofpoint-ORIG-GUID: ScCh2NKqnHL0z9szIBr078J_Gg_bgyKa X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/03/2023 14:55, Harshit Mogalapalli wrote: > We have unreachable 'return ret' statement in cs35l56_spi_probe(), > delete it as its dead code.. > > This is found by static analysis with smatch. > > Fixes: e49611252900 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56") > Signed-off-by: Harshit Mogalapalli > --- > Only compile tested. > --- > sound/soc/codecs/cs35l56-spi.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/sound/soc/codecs/cs35l56-spi.c b/sound/soc/codecs/cs35l56-spi.c > index 80dcf37daae2..4b2084e85f29 100644 > --- a/sound/soc/codecs/cs35l56-spi.c > +++ b/sound/soc/codecs/cs35l56-spi.c > @@ -29,7 +29,6 @@ static int cs35l56_spi_probe(struct spi_device *spi) > if (IS_ERR(cs35l56->regmap)) { > ret = PTR_ERR(cs35l56->regmap); > return dev_err_probe(&spi->dev, ret, "Failed to allocate register map\n"); > - return ret; > } > > cs35l56->dev = &spi->dev; Reviewed-by: Richard Fitzgerald