Message ID | 20230324145535.3951689-1-harshit.m.mogalapalli@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp700069vqo; Fri, 24 Mar 2023 08:12:03 -0700 (PDT) X-Google-Smtp-Source: AKy350bhhCo9EAEO7Sh2LNeDLdrprTI/Lgg40kUxMBKhSq8rHh2wRAeBFs3AR3yEZyB702Thoe1r X-Received: by 2002:a17:90b:1801:b0:233:e9a7:209e with SMTP id lw1-20020a17090b180100b00233e9a7209emr3161360pjb.28.1679670723518; Fri, 24 Mar 2023 08:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679670723; cv=none; d=google.com; s=arc-20160816; b=j+AJ2v1L85HCaJRpXvZ+LpGr9L0GNcee7I6VlAl+vw8Q/VRFmnSFGrHOUUD36PLurE OBA6Bsj7Uj6TuoN9lrWqI2bb48xQy7kOSXJjNEpEIvGzZeUVwepTjJaU0AFA/FDQ/dKB UEXC0Oq0bM0TMrmc7K+w6AwsRrDy8BrQV5a/QgMASFByXJaXBQWNpLscw2YPHVLEKBLX 0EGCvOyn1LxhQofnVv2rytYVWxJS05Rv/8BOsRaa4qn1QVJonyMvMPJSXHy6SAeTJyYy /ZIARAMQfmzVMrwVs58CapoU7ErjfsUdxA5Fv4uzmjJWTaPHT3B7z7BT9HybYLMN/hBU smiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=bbarXCl626B39KPisJMC+F/vsaqimQLhqQdGF0IiSTY=; b=R2sH96+735Rgygar4ePxGQnXZ7BAOLrDv/nRpzaS9lybVzAOVmqkjjflFuTf4OV9gp cQaknvL2qbuQ0mr4XyfXF+EImpA6P20K+Mz9cwTjAUc5TkZkAg7I6d7D75R/HwFUdXhY wp6e+Ioib4NSxal/IozFPaaZm1mlMHrrSGEmcKS/D7KGBG+2NZDiR7mwqfWCv5zHS/f/ +LfxFvDwSUHe7Cg9rTcF/C/nRWVac6mcH7u1UkzVAQMROQ0vqp6IN7/zxWhxADWiUntZ N5/j40PCFggEOQeupnWTNJMyQRdZwjhiXWFUXl6nIPFQdK2IIzH5vJWcWm26Ssl4FpFq LK6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@oracle.com header.s=corp-2022-7-12 header.b=alkTre79; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a17090ab90c00b002332c17dbfbsi48141pjr.70.2023.03.24.08.11.41; Fri, 24 Mar 2023 08:12:03 -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=fail header.i=@oracle.com header.s=corp-2022-7-12 header.b=alkTre79; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232335AbjCXPGO (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 11:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232339AbjCXPGM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 11:06:12 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D89126DC for <linux-kernel@vger.kernel.org>; Fri, 24 Mar 2023 08:06:10 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32OF4ERE023932; Fri, 24 Mar 2023 15:05:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2022-7-12; bh=bbarXCl626B39KPisJMC+F/vsaqimQLhqQdGF0IiSTY=; b=alkTre79gDNlGUovG8GXVbG9mVDEOfFcIXswnosA8ogwQH3gBfCKdi3KayGsBFi51/FY tf5THEmfnjvn7OIkbYYJgWQlLoS9HWDubGkhPypUjf7SCgWHcsQSkl0sLFLnr9aUTyot c4Gv6f/k0LT8uZBKrRUhYXuLtLZNcyX8zxBiE7780cvpvej73R23ezVWrHKugriN+cO4 gCwFUeUAc7cAiHq0S2AcmQo/B/ETDmSSANPFOoUucaqbM/d5HZqv8AYNY2IK1fjSOWCh oIFEaHFWe4+2dzSe2/43487TG/kU/DQt1nl2Y1CCPLw0xvPrnGL6I+vEoCTwf1KmdCFv TA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3phe69r0fd-25 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Mar 2023 15:05:45 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 32OEkqVf037930; Fri, 24 Mar 2023 14:55:39 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3pgxpy4d73-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Mar 2023 14:55:39 +0000 Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32OEtcBl033198; Fri, 24 Mar 2023 14:55:39 GMT Received: from ca-dev112.us.oracle.com (ca-dev112.us.oracle.com [10.129.136.47]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3pgxpy4d6j-1; Fri, 24 Mar 2023 14:55:38 +0000 From: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Cc: error27@gmail.com, Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>, James Schulman <james.schulman@cirrus.com>, David Rhodes <david.rhodes@cirrus.com>, Lucas Tanure <tanureal@opensource.cirrus.com>, Richard Fitzgerald <rf@opensource.cirrus.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Simon Trimmer <simont@opensource.cirrus.com>, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org Subject: [PATCH next] ASoC: cs35l56: Remove redundant return statement in cs35l56_spi_probe() Date: Fri, 24 Mar 2023 07:55:35 -0700 Message-Id: <20230324145535.3951689-1-harshit.m.mogalapalli@oracle.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_08,2023-03-24_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 adultscore=0 spamscore=0 suspectscore=0 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303240120 X-Proofpoint-ORIG-GUID: FtsxNHGA5rOB_qmHc35Rq0PHR0iURuRI X-Proofpoint-GUID: FtsxNHGA5rOB_qmHc35Rq0PHR0iURuRI X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761262408178712115?= X-GMAIL-MSGID: =?utf-8?q?1761262408178712115?= |
Series |
[next] ASoC: cs35l56: Remove redundant return statement in cs35l56_spi_probe()
|
|
Commit Message
Harshit Mogalapalli
March 24, 2023, 2:55 p.m. UTC
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 <harshit.m.mogalapalli@oracle.com>
---
Only compile tested.
---
sound/soc/codecs/cs35l56-spi.c | 1 -
1 file changed, 1 deletion(-)
Comments
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 <harshit.m.mogalapalli@oracle.com> > --- > 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 <rf@opensource.cirrus.com>
On Fri, 24 Mar 2023 07:55:35 -0700, 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. > > Applied to broonie/sound.git for-next Thanks! [1/1] ASoC: cs35l56: Remove redundant return statement in cs35l56_spi_probe() commit: 283771e8eefcbe4a0a84c6a00a0b7a210bbc5846 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
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;