Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2686030pxj; Mon, 31 May 2021 08:14:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx91TZxBmmggk8YQJz94JWM2YottWDWj9JMKW2mh2CriyuTVj1qOynbsfj1SfdWZqBpsl/ X-Received: by 2002:a05:6402:1158:: with SMTP id g24mr25832005edw.134.1622474062430; Mon, 31 May 2021 08:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622474062; cv=none; d=google.com; s=arc-20160816; b=myX+/w0g2AQzWWQLnbMihT8V7oZsE4y4a/cHBQbGrdsWZOC65Mh7kPtMC5bsLhOiFa aciD1xEve69Ew+wVSRC86wpr13DiinDm+tEe0pZz7R9czG5hHAEB9Al/qbEiCUvFf+gE qYDcLls+73KOh0q91TEfoAeREcJFb+tEzqjWyJUfxSgPQxpKv6MTa3qBlcUhvtOJmtMr tjrTjBGscZK2kKiWPch7Upe3bvlUnHOj/JdqIFT7M5goGJ+qxiXnOUb9soD1BGV3Bvib FF0EhfHodCq0ii9E98VB7LQM+M2T5yFu8hx7DjRRCKUhXNtgNYXxVhAiaJ745VAOu7NZ qgQA== 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=zAKrJPTXzsuEUqVsk1dBiIsMO2wA63HZSTG/JEk4jE0=; b=HkPRLpL0IjfxWlldRnlEoP104ZXptBif2nZHjIpVnLHVVfYj0VSjBN0uf1Q1j8aCg5 FCuM9fqsGcHuK+oIEX8ycly9uQBEukUmhS8wsM9PfJ6q4sDKVYs4o3IS+YLwMxoSy4mQ OBN7zjw0t5n3CfyUVuNjAciouUmNp1TDhz8HVCcD9iVJfPEi0MAIUVKhvLz7i9Erkt1l +AJCuBVRyahoA487wTNxFHzLhYfl+Tb+FlQtm/z2DcBGeGY9SZIijEiIQBCVZuZZDxDj KOiB1uusP01xyWftBRflCjpcv2efHHM0YwA8zEWAkonlIdjAk0xdOC9tjq9GtBwzlyEa lwqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GiFF0cvF; 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 t7si12171076edd.39.2021.05.31.08.14.00; Mon, 31 May 2021 08:14:22 -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=GiFF0cvF; 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 S234491AbhEaPOa (ORCPT + 99 others); Mon, 31 May 2021 11:14:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:40544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232290AbhEaOMD (ORCPT ); Mon, 31 May 2021 10:12:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9BEA661412; Mon, 31 May 2021 13:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468487; bh=OCztI5cuAhcWMrsWIJxnVBP6xOkqRrILrynJRqFPmKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GiFF0cvFwEdOOzzOpzvBwZjVS3K9G7sL6YZEcRditWXe0k05smV3m7Ut8sJ2bDm+k qogPObWLDou2GAdtCDGk56Buwmvn3dFdDxovnRxTvh1vlCS2sEi3mPaUoCq7IEUeH6 221eLHDWG3wnZIfrZRXTsVxHvY3h9a3wA/lND7nE= 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.10 227/252] ASoC: cs35l33: fix an error code in probe() Date: Mon, 31 May 2021 15:14:52 +0200 Message-Id: <20210531130705.716902386@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 6042194d95d3..8894369e329a 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