Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2714782pxj; Mon, 31 May 2021 08:56:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwI9sR07rZNM2GmXzI/www2G6iOULtKiscva8cOe/6d6pBZZlIhpbYtQhH+ZOD7Xg4DBNsQ X-Received: by 2002:aa7:cd83:: with SMTP id x3mr25954645edv.373.1622476602128; Mon, 31 May 2021 08:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622476602; cv=none; d=google.com; s=arc-20160816; b=ZOxmYBDRqp5xyTNtiIX02fsEBeRR37PfzSTj507V5frQ+gM+cfiOZbAgO+FDGUsewi wzii1WJFynJiUNYB2arlRjaBxeBZJlBAhbW7V4BAkWGWiaYv+dzGlR9j3G7upOBR6aLR eq6FLBOqNZnjvKcI3hLZgRTZPz453SY13cV8WrOOYk43Ed0/jMbEb7Xf5p7mZDOmiDg5 4ZPNfwRl67+WRVKlypXissh1Ad4xrGoi4FN0OEecMKgrjBdRQcB563HW7U301VsSfn8p g7MbC5F4yH+0V/gUi6sv3m1FjLLFr7CRSyYTM1tHj/zNAiVQTwXi/M3WHcvxoDvYP4Hi yA2Q== 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=A37UCSi4zQxVjCoHIYdxzR84rM4BR38js0oMidYtM001JC3uHP+Iga9FvKM4ZMWXGX tDqoPC4DjzSOJlMMuJ4h/CHplRmnArMxV1McpWXIZYeagANHAETxL+HVsP6wm1kAsO+G FB0HVvRYdqNrVqMOUwNdc+FPbXlxZ6F9CDnQNudRkxTpA6qio4giuq2hKIjRfUMoomex lKoIIW8McP2+dGlHicO4YIIuYU4q9z4ViAhgx255yurIbOTRFNkpfV5lcJECrQYZl74L ah6r4uc0vOBmL4aGkquZNRB3lc2jiDqA6458pmf746Iocdwc/bY24ABkdjzxNZCl8q4v EeRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CADgFbts; 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 j23si3789622eje.551.2021.05.31.08.56.19; Mon, 31 May 2021 08:56:42 -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=CADgFbts; 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 S233619AbhEaP44 (ORCPT + 99 others); Mon, 31 May 2021 11:56:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:55732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233271AbhEaObH (ORCPT ); Mon, 31 May 2021 10:31:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AD41D61C31; Mon, 31 May 2021 13:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468938; bh=OCztI5cuAhcWMrsWIJxnVBP6xOkqRrILrynJRqFPmKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CADgFbtsLr8cBZIBVmC37W1B/xVTjOb0wytdxgPpDMnSYuUev5GgiNCzybXFuPoK7 qixTw+sVt1d+dkxJwKG6jFD2WFvJjmr210RDPfvRCwlwyJuEWVwmjBMUcLJSwYDY83 PRdkuX1hbDTv8I95G5tl7HMbH1ecc6/L3EzyyZLc= 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.4 159/177] ASoC: cs35l33: fix an error code in probe() Date: Mon, 31 May 2021 15:15:16 +0200 Message-Id: <20210531130653.415555952@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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