Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2639737pxj; Mon, 31 May 2021 07:10:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/GKA2o4qXHADuawANndT4qLD4CCw8+Rr3fAIuiUXX/2aHo/JrVIrD4/ovaAK7SQCNAXNH X-Received: by 2002:a02:cd8c:: with SMTP id l12mr1361129jap.111.1622470204259; Mon, 31 May 2021 07:10:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622470204; cv=none; d=google.com; s=arc-20160816; b=XJJr8gD4YsY10EWXO1CbQZ7ShJ2+hSdHFxdtaihgOSCOzHmKSMetQcatvqrlHzE0N/ tJKM2kYDMKmRjkGUbFWjss3A8d3lsXO9/HJ2Wc2XpKdJdHR4Mg0QZmFIocEUAU6TTcyA XVspfMrxj/wnuIvatGjlxsxRFtzS9vulZjhT2a202xuRGcxtbTxt91axDvkfX3IXA4xQ v6Y0Ltk4SCnCCDz0/e+IevHeBd6qjxIcDP5Ov6/s7rbNYkduaPAFgoyPaZ6CCSCCr7Rc VmWaAo5jEXKZ4I47JV71sPMw4CIfaVvKJwMKwPgLy0wbIEua9E5n4AkyAXZl5lK7ZFDO wHvg== 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=r7U6H0B24xYUuRi/Lmy4XhJlQ3xd1D8l7Nyh8qdbxRM=; b=gtmQlddEdV7hMq5UZKIre558i1sFpiWia/6vI/WcYx87pR+zijiE5lqdIOQrS6WhH2 UyG1mEudg/Cec2PRt+JllfTvm0BsCs4tz1/QHL+8taSmu/Wn1eHyVY5pi2MXrviRpCAq aLhtXjSrlUzXOseKK/T/bKsCnLpdIqZncyRJ8c+f1rwOHW1tSu077Or5gLRW0JQfpnCM Erva0e9jsEVSVTE84pqLU47/bl0Kny5V4pb20yccqt4YjqL3zPiKf0NlbjO/L9pYtGwa Z2PQFDiA00oR/U+jidgf0kFELM9ZlfdBvUZzV8CXtS1c3geLPOYrFSBrMky3074S/Sh+ O/tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KhPMfash; 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 y17si14255664jak.57.2021.05.31.07.09.51; Mon, 31 May 2021 07:10:04 -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=KhPMfash; 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 S232976AbhEaOKc (ORCPT + 99 others); Mon, 31 May 2021 10:10:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:50910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233035AbhEaNob (ORCPT ); Mon, 31 May 2021 09:44:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3215D61574; Mon, 31 May 2021 13:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467760; bh=eT6wWRN516WVE+D+zEmmOZl6GD11Ltv5a0ObWmY9kj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KhPMfashK+7SKAeBApq6lntO2dqpYa30ZIOmfCDYV/uZfrHzjwl5UCwr27u6JtVQn HUkPnssq+H5DeY4J+P/OPff6cGDZGpmFGyd8o6XwMjJHyZ1BVj8IEDCQAn1HzlpUBU JEzRgOOhB9DfYdfSWzvVQGlz/tAuzAtKPT5fcjDA= 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.14 69/79] ASoC: cs35l33: fix an error code in probe() Date: Mon, 31 May 2021 15:14:54 +0200 Message-Id: <20210531130638.197242432@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130636.002722319@linuxfoundation.org> References: <20210531130636.002722319@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 854cf8f27605..e2c1194ea61a 100644 --- a/sound/soc/codecs/cs35l33.c +++ b/sound/soc/codecs/cs35l33.c @@ -1206,6 +1206,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