Message ID | 20240215140841.2278657-7-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67055-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp424540dyb; Thu, 15 Feb 2024 06:10:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUauKsWMJHAMO3l9RgN4siZOuZGTzn3kL67cchGLlJeVnEVuqT2E7j9Jwu3shJzzV2aEsfDUdn9ijj7mCAtO+269wBi6Q== X-Google-Smtp-Source: AGHT+IGO8AYkeRNZKiAZ1nCP7jz6pqRH7yWP79dBC6XhXanXMASNvDpOffhB415DVAnlLcney3Mo X-Received: by 2002:a19:5205:0:b0:511:47f7:62e0 with SMTP id m5-20020a195205000000b0051147f762e0mr1437780lfb.21.1708006250120; Thu, 15 Feb 2024 06:10:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708006250; cv=pass; d=google.com; s=arc-20160816; b=qsx/6mbZMdw6sIjW6Pt8ddoMkwhXon76VpGLdoEb7yuB6Cuyl2RHFFqF3Cjpn0oYjB xat8JoW8qbBE27JvbX3HyuFOYDECXPTF4o69S1iKa/n8+We0CN4GYFOhvLqo7kA4ilw1 irhsmskhm7NxZGrOTaMrjHewj38CN61TqMJ+3AujJ1ofQ9qJybmtD7FZYD1t5fKRcvND Bd7rcJdRwhKU1qObZnqNVuE3RSV936OgDzIV3IoLYtbS1Rqyb/6V6iuuzJ4uEDzHO67Q KdKIKN0VBsIKQf9gwOoMMeoLkQ5p8++wQgChCSAupcxWdYj2PWoRAumR9p65/Y2GirBn bXWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=J9hLCgOgDWO+oXa7HyITa5NYPaX6P8CRXV5rOrD/zA4=; fh=D3z4s3mkXP7g3d6b9obS3Y3R0RdiswnCRt0MMi3sDWI=; b=pnWUCcqu+H4HmaP2v7rNkmehuuyj5CZ0XE7y9tha69rLRRvUjWX1UllSml6Cijl/Lg 1bQQV1HYht4hMG7XNY5oFHCs4w+psh5CADSU7xGlL/mb4g5r7HLfUZhDgTZD5MKrMQXd jzazgP/85Dh7GlKcDcyYJzNZlkRqgVGqryvfv4XHNgqz/mwXyzkAd3f9BpkdcdK+CcJl IIOR1imGSIMBs6Ni5gT6FdxQ+9aZXLkiQ3RKq7nVrd2pM+yAEnQ/HwVoJHNIgEBqyJ0P SIgsfHdhfbZ6uHASc5Czq17cyT3GToFkSGcpiXAA5jPDBpqw61hfD2BpIHkzQgXJzF9E c8gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=mvDkUFmC; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-67055-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67055-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t28-20020a508d5c000000b0055ec32431efsi681737edt.13.2024.02.15.06.10.49 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:10:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67055-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=mvDkUFmC; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-67055-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67055-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6994B1F25EAB for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 14:10:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D39951332AF; Thu, 15 Feb 2024 14:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="mvDkUFmC" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B07E6133281 for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 14:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708006148; cv=none; b=uWbXaLFaTua04yjF9AeZdNjY9ytGo3DRa/K9ofkNKGdBCh0Cqw1vvAcPIQySSDEPLeDlQDhqoVYwRSGzeBfnIpFQL80LEMO224UaZtzVTWvPu7XKbYY+pKUaiG5Jw1pOrVPMiroazhWnqr+6aLD3FSWrGh+N5tdMR0w/hglpc6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708006148; c=relaxed/simple; bh=4Xx+Y6oRenFZ8m0ziN8T9+sztwNA2LuxcGKFoIzVWlI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M4rpM/kLZ92c55B1Uh6nxdtEtQ1xxQgbp6Z9Gj3JzDgeonNKgGvTJCDmKPNNLd+nK6xo5wfiwkC6kENCf6qyfZ/4eGayij/g4KuhqtgPYn3bVVwYS8RKZHDywXGv7rmDvMEsn6VmCQ/ObEZB0nAq5uEtONhfl518zbESUXe0hos= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=mvDkUFmC; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-410c804e933so6613335e9.0 for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 06:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1708006145; x=1708610945; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J9hLCgOgDWO+oXa7HyITa5NYPaX6P8CRXV5rOrD/zA4=; b=mvDkUFmCROgG8QlXHh7hJxbEZbza6PjqQLM3ONvOTDbBafy9P2U3a7h5B48xmvOhcx hubC8FIchViXedk0hAGn/gM1xoUyfPeBsXSu6+jQiRStXzmjS7dR0Ei4rG/N2u3rgJIs T/82VRQgt/uX2C7Fi08V3pKUD3lJ+1qjy2ZjHBEAq0sfQrV1q6OlgCS+MBixduL9oK7D 9Vw4DQcBtrJNKQs2bnIZTfKI3iU/5Ce/pzZ1O/uMXsKArnt22RQzNq1apRMhZlaKpDXA spfOlXvkAt2AM+nOpJKgmepWyNc0Lk60Op0cFhWYRZp9AHIgby7g0HBRF+w7iJ736CNf Uurg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708006145; x=1708610945; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J9hLCgOgDWO+oXa7HyITa5NYPaX6P8CRXV5rOrD/zA4=; b=QopeS8w7enqlhP3DuTlw6b5CI+lqasaOpxLcQo7RUDoZJCIUOCZubN1d5rxeTkZzzY 2cHeE6imORvBS3ND1LGhlM1ggjV8j3FE+jV8TwkTEDvIN3xQixNuo34h58oH2Y5ruB8O wtObZ82D8sCqL6I+UrUxmTt2i/I3qGSLHhkuolSuhUpbqpuR8vZbHW8euwARUF1wUrqe e/cUFeSUZGF9mpBZyYdmcHcyLeP936HqP4aQMpait1i+FmErJ0arRS10i11xmGjEIMJe QlofYW7fa1AQKunhzEuc91UTox/CKIwMeap+wT0fNiXPfvpy5Gr6VSvY5Y0YUus2l2I7 slZQ== X-Forwarded-Encrypted: i=1; AJvYcCXCCQCk/cfchTdxM6bDT5eVEXvt53XYlv4ncDwe6BMwJvdRcCYUmzGcYTE2MQLmZ/Gngfd2xbYbr6yWEHohTFXMuTYhKNghWwIA2UBU X-Gm-Message-State: AOJu0Ywg53ToAGXFGlUiAyV0Yt+QM33ybJsRWTMMQz9vGatPK7fMfdJz IeLyeP9qUhzfzvNyTZ22OWnRlUE6xNk5AXBfYFWtTKWAu9HWzEffmi4uxSw13fo= X-Received: by 2002:a05:600c:1c18:b0:411:f49f:b274 with SMTP id j24-20020a05600c1c1800b00411f49fb274mr1578583wms.0.1708006145169; Thu, 15 Feb 2024 06:09:05 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.20]) by smtp.gmail.com with ESMTPSA id h17-20020a05600c261100b0040fe4b733f4sm5120950wma.26.2024.02.15.06.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:09:04 -0800 (PST) From: Claudiu <claudiu.beznea@tuxon.dev> X-Google-Original-From: Claudiu <claudiu.beznea.uj@bp.renesas.com> To: wim@linux-watchdog.org, linux@roeck-us.net, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com, biju.das.jz@bp.renesas.com Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Subject: [PATCH v7 6/9] watchdog: rzg2l_wdt: Remove comparison with zero Date: Thu, 15 Feb 2024 16:08:38 +0200 Message-Id: <20240215140841.2278657-7-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215140841.2278657-1-claudiu.beznea.uj@bp.renesas.com> References: <20240215140841.2278657-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790974361881188125 X-GMAIL-MSGID: 1790974361881188125 |
Series |
watchdog: rzg2l_wdt: Add support for RZ/G3S
|
|
Commit Message
claudiu beznea
Feb. 15, 2024, 2:08 p.m. UTC
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> devm_add_action_or_reset() could return -ENOMEM or zero. Thus, remove comparison with zero of the returning value to make code simpler. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> --- Changes in v7: - none Changes in v6: - none Changes in v5: - none Changes in v4: - none Changes in v3: - none Changes in v2: - none drivers/watchdog/rzg2l_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/rzg2l_wdt.c b/drivers/watchdog/rzg2l_wdt.c index 93a49fd0c7aa..29eb47bcf984 100644 --- a/drivers/watchdog/rzg2l_wdt.c +++ b/drivers/watchdog/rzg2l_wdt.c @@ -316,7 +316,7 @@ static int rzg2l_wdt_probe(struct platform_device *pdev) watchdog_set_drvdata(&priv->wdev, priv); ret = devm_add_action_or_reset(&pdev->dev, rzg2l_wdt_pm_disable, &priv->wdev); - if (ret < 0) + if (ret) return ret; watchdog_set_nowayout(&priv->wdev, nowayout);