Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1259199rwl; Fri, 24 Mar 2023 08:13:26 -0700 (PDT) X-Google-Smtp-Source: AK7set/rUNV+NnKaqWn4dDxvBH91QlN49LhseDkwdwgBehxnaSplxTCy0eLKN4EPNch//h13TQ1e X-Received: by 2002:a05:6a20:bf1e:b0:dd:82cd:bc3a with SMTP id gc30-20020a056a20bf1e00b000dd82cdbc3amr2948562pzb.18.1679670805823; Fri, 24 Mar 2023 08:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679670805; cv=none; d=google.com; s=arc-20160816; b=v23yf32V62i5+V9hxWUfFit5sPe+LaK7xuHK6Gds00ziFPxlTLYrPjK3iO92wNVw51 SKV/pHTlKy7qjdFVh8BCHJGxe99DvVUORfT07/ROlCKiJkPQ5WbOhTE7U/aOUY4/b+jJ sNWuT8y0wINUc6wrudJsdTIiJA7J3FV8fxbKqm78Ko6yC2C32Mlc5PtdMP6cX67ztjE9 mhKB4EOspL4uSvj64gYMwi3pyErWATyQtKthhqwBTdWCkMDQh8QDSxmOZSjmcG4YrLQE yIjaOnr+YzxBOqws4WNIQFsGJXzA2MJa0PqtUOdw97UPBkZXY4fPVkNtQkfT8kpCXklT 6RkA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a056a0014ca00b005a8cf0d93cbsi22538628pfu.3.2023.03.24.08.13.14; Fri, 24 Mar 2023 08:13:25 -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 S232329AbjCXPGN (ORCPT + 99 others); Fri, 24 Mar 2023 11:06:13 -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 ); 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 ; 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 Cc: error27@gmail.com, Harshit Mogalapalli , James Schulman , David Rhodes , Lucas Tanure , Richard Fitzgerald , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Simon Trimmer , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.38.1