Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2629798pxj; Mon, 31 May 2021 06:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3+es0uDfHY/KIsepVtKfVfi0ADYktCclqk7GPLMJ/s9ItDUhXRNemR+t4J2zatrubUs6r X-Received: by 2002:a92:c68c:: with SMTP id o12mr7134800ilg.6.1622469536249; Mon, 31 May 2021 06:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622469536; cv=none; d=google.com; s=arc-20160816; b=BUgCGtLEWKXmvR7JKO16jqOvQjsvr+mQz8u5etj6iRX5xN+7a+WlXOXLyxYz4B51SH isxaI/47mbvm4ZMmGSXz04qk8U3U9OYx8SnfWfKqzry2PA6L5QZhCMw+byx/ExkxTYr9 gWhw0fQFGBtxgRCj0WKdeUJrHoPHc5nVHM38NFW9mxZ4Mfe1gqdY4dmkOaBZrEtBpFi5 3enfgtuinu745wQn4cATLA46DiEAkZQweVU3lFYeSF2hWbribBqF6q8YIP6881L6WYwl tD6i5VaourT6AIPPkqd4DtkglfV9zLXnCJy5tXcKLDxVyTKAWVKD70jJWkjZP87hfufX VTlA== 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=GRIIcCnW740b7JcIouSr3W467JDgEyT4tE1qOojxkFs=; b=ctYR9UXf6a5zQ9GTIRncv1rvw1Z01XhmqpEw37Cc6FYW/PZWa5HGWWxriX0BTVjCZX 02BQ+qlKoRnYvNJAWF5lDFgM2sCeHdYc2XGXoGuevi+86ssO/a8agUaZycSDWC1WRF0y jjchBH0lsLj/SKu6bofkTNXHmVj3tKvVvDQT58zjbqT8I7Oce/iP4juWMxaSjSMVGVuH CIV0Gt7SHFZHWjCpbAkUb5fcTMstPzGUTRyjFmEBzMIn4zb/gTtMnxNegUG/vRlhyx5C DyHzeD6d7bX9TdGJ71xUjn6lW+4BlRBxx5DTv5OtK2qolKdq5jUzEWRusW8P+ybt86iZ lsHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Iis8rYZL; 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 g3si9885791ila.154.2021.05.31.06.58.43; Mon, 31 May 2021 06:58:56 -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=Iis8rYZL; 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 S232066AbhEaN7D (ORCPT + 99 others); Mon, 31 May 2021 09:59:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:44890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232167AbhEaNib (ORCPT ); Mon, 31 May 2021 09:38:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B0A2D613AD; Mon, 31 May 2021 13:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467595; bh=PvpqNfjGQRdLeH0IHyIbADJKr8YmkbC9yVvp1MaYJ6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Iis8rYZLizmGLNBJ0iWqvAyB1EvE6gw2xB+vWqgjOFYt1DxzXaQdvFKMTePZ7wwkr csh8N123O8pT/sxk/Ci1WR5PaOXqmZRoJq+71SSRsMrs2JbzXu7tRd8CXShS7qr08V qsbbEvAowAm8XKTEo9eHO28cOb/kKCjdSxVsXuwM= 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 4.19 105/116] ASoC: cs35l33: fix an error code in probe() Date: Mon, 31 May 2021 15:14:41 +0200 Message-Id: <20210531130643.686402619@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130640.131924542@linuxfoundation.org> References: <20210531130640.131924542@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 668cd3754209..73fa784646e5 100644 --- a/sound/soc/codecs/cs35l33.c +++ b/sound/soc/codecs/cs35l33.c @@ -1204,6 +1204,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