Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1838595pxb; Mon, 13 Sep 2021 06:40:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx75bIscZ3Ss+t3HX5guGUktRxxU6nvIvXIvj/Vkm+V0YAikeKj3ZAwTKm1UT3SVakGGy9j X-Received: by 2002:a6b:8d8a:: with SMTP id p132mr8733485iod.81.1631540418726; Mon, 13 Sep 2021 06:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631540418; cv=none; d=google.com; s=arc-20160816; b=j8g+60OesBOrtqSeAIuvjWkgOLRFXByl7L17xrA43q7OEQuoZwsS6ifXdtYwiUJkOB 7LyosCs8bV1Z99KEcvvGL8vUa7wyPmNSemxYhHy6kZx7U3xEcd+/w5/VMRgpm1dLABER +uDwUx2I3BoIX/PSZ7AE7zzPK3zf1n7HYuvt+i+4dB6uKSVb1qzHVV/iDpXV/7kxiIbF HSXZG9Nbpv63VbAyN16Vx3+4VpThgXp+1Dw/ZkhR9wvHSy90jdD4HhpzhYjnYJ1l9wvb XWWr0AaPTcUnYKAGlkwJfdawG5sQViQsQkEFYL4FKKPGrCWZKzn8YIIG1GkwR4uDBQRJ S3og== 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=GcWTOneUioCn+wDh+c0GP/JP/feQucJfUYw6c0U+5xY=; b=FnopOI2feBwevCwlQMIov9NG3sDblaWWmnSJZKN7ZUBlFB5Aocj/2vF/kj6WVlWuV7 zwEnP0/8W1FL2MDtwILJE//DjlOG1lls7nogiuCp6EKoSQG5mWDrpuS9E4JjgalHhvvp ZBEA9A3xdO3fQ56MU45DDZ8ps7C1JY08t94n2dx/cLEJFfnhbNYLjnSsx3ntDWmOweQY OUsDt+12pQ9gRCFgkXiMj6WjLaoSe3t2MWIh0xCzHfbDW/a3u562BEohXLf81PmuHbo8 RBZDjpuyO63QFAjTndWC4EbzVH5IPw5d0EKkqOGxfXupaRxwKRUD6SRoGirtWlhnC6O/ JTpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jFiyt3y0; 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 l6si7329641jac.65.2021.09.13.06.40.06; Mon, 13 Sep 2021 06:40:18 -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=jFiyt3y0; 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 S243036AbhIMNiK (ORCPT + 99 others); Mon, 13 Sep 2021 09:38:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:58462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240872AbhIMNcj (ORCPT ); Mon, 13 Sep 2021 09:32:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BCB056137F; Mon, 13 Sep 2021 13:26:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539563; bh=LhIFj7V7nIgk1FlbSSAAwYm0Zja+2WrGGJvCfXGJjuc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jFiyt3y0nv6oHKbp9JwRNQhcwP0/8dFYXHXqksvNdO12lv8MfzwC+ZS4UvbY/6r1n c3EXq/7UlMH4vxwqg350QHpK5ORRpfnW2JMfv1ygex1Iio4VeXSSWD5mkrX+bV4j1I uzlaLoHAhqExtVVsSb0FxbID1MT2+CJ9VZkk5fIg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abaci Robot , Jiapeng Chong , David Rivshin , Pavel Machek , Sasha Levin Subject: [PATCH 5.10 073/236] leds: is31fl32xx: Fix missing error code in is31fl32xx_parse_dt() Date: Mon, 13 Sep 2021 15:12:58 +0200 Message-Id: <20210913131102.839470265@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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: Jiapeng Chong [ Upstream commit e642197562cd9781453f835e1406cfe0feeb917e ] The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'ret'. Eliminate the follow smatch warning: drivers/leds/leds-is31fl32xx.c:388 is31fl32xx_parse_dt() warn: missing error code 'ret'. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Fixes: 9d7cffaf99f5 ("leds: Add driver for the ISSI IS31FL32xx family of LED controllers") Acked-by: David Rivshin Signed-off-by: Pavel Machek Signed-off-by: Sasha Levin --- drivers/leds/leds-is31fl32xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/leds/leds-is31fl32xx.c b/drivers/leds/leds-is31fl32xx.c index 2180255ad339..899ed94b6687 100644 --- a/drivers/leds/leds-is31fl32xx.c +++ b/drivers/leds/leds-is31fl32xx.c @@ -385,6 +385,7 @@ static int is31fl32xx_parse_dt(struct device *dev, dev_err(dev, "Node %pOF 'reg' conflicts with another LED\n", child); + ret = -EINVAL; goto err; } -- 2.30.2