Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2752071pxj; Mon, 31 May 2021 09:51:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYckHYP4jv02Y/jUmn0Gtx6Fi/6Ov/vrJh0//YJ8I1OU2/PcGTRNvOeft3FCvkZAvXRn66 X-Received: by 2002:a05:6e02:5cf:: with SMTP id l15mr1814886ils.161.1622479860330; Mon, 31 May 2021 09:51:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622479860; cv=none; d=google.com; s=arc-20160816; b=z5YdLD2gUkERvYdwQicHATRN81xSxKINqUqmbxS8DVwayQSznj5vFQaC3dUS8l69ct QsOZTBTifzcnj82MtZRvTmVCljyo1MP9lNvAX+tWjdZAgR37IH8u+FJDbaTRBHMw26XY n04VlX24L7NQINKdMN+8ctW560QMnr0MwXEQMGFZlXRsNbegBTd/x2PMovBUIhl+z9/7 In/XS0+ORY3Cf3kJcXa6VZ0nuNhbrF35Likzb/qARLEgVWfGPY+v7iTIz4skOKQNOUQw jgia0qGCDDfguO0A5WtuEOushAoWizL9X3Wus8bd+N9DbkPq31DWrvg1yYXsdOsYtQat w86Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+Lpb2KMhjPnQ1vRqVzd5zZQ3Il92bu+A7XRtftjLVR0=; b=mu0nVpLVeJVbPAtQG763g+EJFS/1HwuyFNkjtSLXJe19wcTyDJRJR+db+K57WKrosY uDJ7eei9jGMtSqXs2t1MoI2yuYecUSDPR5Ueph7pfZODS/0AkZw2MiGsm/vpaimWnnSR hFeEOoMa69oZ2qgj9K6P5zIksVbn7yqFMFE5NNOly2gM5R6u0nf7SCo4x/Zsb+WIz0oO peJXJZ9xam0NptLxuGl/0STr9zHMgVPuE36x6k41ZG9ShFntpfTugo+DzLWLnBc0b7wr 6xSljEBYDAaI4K9a+Y/YFlcHCqKQnKD0QAfxILwgeBdgtWRZqfO4loiL5UGw3HSMv+lH rHkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1k4V4Gsn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si14052735iow.6.2021.05.31.09.50.47; Mon, 31 May 2021 09:51:00 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1k4V4Gsn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231569AbhEaQun (ORCPT + 99 others); Mon, 31 May 2021 12:50:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:51034 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234071AbhEaO5T (ORCPT ); Mon, 31 May 2021 10:57:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9FE9B61441; Mon, 31 May 2021 14:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469623; bh=Ulj1/rqsk5Rd2PJkOn7znOU14MsZb3X4paMM+bw2Guw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1k4V4GsnIIY/SrGTsF+FmpnFUcAE6wHqMJr5nOhtxH6wQsy5aUGLyIODikCAzbceQ zxQ5HjO3x7a5+9LGKQZTnUbP1YH7XMSYnKhziDGvm9kYSBVqjogrLCmlmsY1F+Qbzl qBiXGFFH5ZrLlmFOEuqhqGq9UY3sY1eTHdB6jfkE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Charles Keepax , Mark Brown , Sasha Levin Subject: [PATCH 5.12 268/296] ASoC: cs35l33: fix an error code in probe() Date: Mon, 31 May 2021 15:15:23 +0200 Message-Id: <20210531130712.746391855@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 833bc4cf9754643acc69b3c6b65988ca78df4460 ] This error path returns zero (success) but it should return -EINVAL. Fixes: 3333cb7187b9 ("ASoC: cs35l33: Initial commit of the cs35l33 CODEC driver.") Signed-off-by: Dan Carpenter Reviewed-by: Charles Keepax Link: https://lore.kernel.org/r/YKXuyGEzhPT35R3G@mwanda Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/cs35l33.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/cs35l33.c b/sound/soc/codecs/cs35l33.c index 7ad7b733af9b..e8f3dcfd144d 100644 --- a/sound/soc/codecs/cs35l33.c +++ b/sound/soc/codecs/cs35l33.c @@ -1201,6 +1201,7 @@ static int cs35l33_i2c_probe(struct i2c_client *i2c_client, dev_err(&i2c_client->dev, "CS35L33 Device ID (%X). Expected ID %X\n", devid, CS35L33_CHIP_ID); + ret = -EINVAL; goto err_enable; } -- 2.30.2