Message ID | 20240208105817.2619703-7-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-57936-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp137127dyd; Thu, 8 Feb 2024 04:45:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHPNci/HOzzKL199wqeRfzzX1kE5WtoVcrWbfbp2gfZSXafWSSFlcejur+rTKpUxWyDwKM X-Received: by 2002:a05:620a:29c3:b0:785:9d1f:4d30 with SMTP id s3-20020a05620a29c300b007859d1f4d30mr4506573qkp.0.1707396322060; Thu, 08 Feb 2024 04:45:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707396322; cv=pass; d=google.com; s=arc-20160816; b=Pe3HQHA5jwWD5Y8UpaiOXN8M9GZKaVUlVWfsN3Wh+Gvwg1zK6L1zxo3+WtEWWLrPMT e6qwd5iDja4Tf7zrRChvCD2uYlcn282UyYCeuykjwYV252tpUqmiVgxFv/usaiPROwFR OFOH4ydMrIHS6HlItiNxSZbM3HGDh0kKoXFXGdDDxxH3qOjGBfHCaadpLtL/meaNYgr8 isG3lJR1hPMZ62tQxIh2U0DAHhBsgr4At+CsZf/nVcGFlkQQpAPKO5LVwXxm/rKfajrP CdirrtGGsfVx5nKwgwzw40IKWaR6dM3EFgnmc9Oo49ttSv5+OroW7gfqTDx4OhnQaUal fbWw== 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=NpI6sRVyvnzeOO07/fKl+UDjUcwjCn7H+rGRCHf5Drg=; fh=I/acvpvjui2gOVHr/gV4fi2ZRyg2P1n5V8pzWHt4xAE=; b=o0iRPmf7DC73shWeQg3Fo/+X3iLuujJooigjh2Y+LXhOW4KGsbGBN99Anpu8sVN7iM kXvlrhTu/IkT1PguMczLYi1KbP4vz5kvH+RLzsf6Y0ErYyL8kPdRbJuYT56sKzWG4OE5 0Xb7pIqejCcCow3XFG5jA4G0UPhF8QU+BWsR6TOAVQXgXGuKsm9YnoE7RtZ2OWqmpvLw lxdu1lYT0XtGn4gT/KVe5ItdSkcbSLJEr53JVYkuoOhBt52TN8nwMrVpdr+No0tJZwhm ln2783Da2oWG6+4taM5ZRqQbBffy04BLhBvODRMukaNDb9oxySkueYrvrXC6Ni34kWcS U5QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=mVNV6n99; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-57936-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57936-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXafpYpToq851Jf/XqSZVI0+Sa12xQFy1nC51z05wmwdWLf1kdYvVm0SL/i5RNCTUjVj1YFpdDFs5mxyQ/JIAgT8A3Ujg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x11-20020a05620a448b00b00785a4c2fb76si1700552qkp.478.2024.02.08.04.45.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:45:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57936-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=mVNV6n99; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-57936-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57936-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 763CE1C289A1 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 11:06:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A17779DD8; Thu, 8 Feb 2024 10:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="mVNV6n99" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 8691178B40 for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 10:58:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707389916; cv=none; b=LjpBqIvVWC3xzrX75W6aVvTkF/03j4UZtiWNKGkkls/a0r1Ep9A9VQNFfd5cSYnmJIB6TRNdwOkbKY5gt1FcqjvL6iOV4o+XDFTy8XW3vVn1zBkfv8oGvhfDPPQC+BJM9FhJlmEg9mwj5RC9qJTgDF/viKhNP9bZqKF5qzFBr2U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707389916; c=relaxed/simple; bh=yEoEKlhDEzMGeKJu+rGCdKapqxgMXcbg7MsWSgwM/fc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oeV0NVYCQsPP8gQSvyvJuZeObUa78rs1gs2BoTPh+uN+rEhrpHSXI/DGjK3cuzLFpqkkr0lQSdfvJZlYClrmJ60mpIBm5b9ifRhWxQCr425rdWds8uthMQ6nDc8U27+gPWEJGXbwcnzwSbdQkpzde+KCHEthflpuO4ofy9DBA7E= 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=mVNV6n99; arc=none smtp.client-ip=209.85.128.49 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-f49.google.com with SMTP id 5b1f17b1804b1-40ef3f351d2so4101765e9.1 for <linux-kernel@vger.kernel.org>; Thu, 08 Feb 2024 02:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707389913; x=1707994713; 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=NpI6sRVyvnzeOO07/fKl+UDjUcwjCn7H+rGRCHf5Drg=; b=mVNV6n990N28HXmGjsY4KL2Pgt4G609tGTrK5sdAu95Eho8E4I9puT4dQiqz3mJDtg 7g7MsaydTAYeTN4LfihfbF0EiuPTlsGZ/Ln3UMOHSZqrEXjydKrW5euHrhMlY4OL96vR qshP5ysqPfTnKaHvA76y1Xis0vP2cqXts4a/gxij4JM7yXmDI9tnUj7kaxzUbJG1BQGc m/jh19mFeITDBudJjCaiExcFRq0eMp7vRMpsw/MrRG8AaoHmH/L7flu2OYIX2TB8C3c3 YrcSxTqfhn27I7DDd7T1rI106ZuCrqkDteIswWPS5QpHI/Nx1jGwJBg621tVpzTdzD/X g+Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707389913; x=1707994713; 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=NpI6sRVyvnzeOO07/fKl+UDjUcwjCn7H+rGRCHf5Drg=; b=vm/0jo+rxzhYcnTOLxbrCyV6dkHwDBTRlsHgPVLBTGfewoNiGDTz2JemptePSES/OQ 1XroN4oydICmmLg5/jgABfLrcBvk7zlVP+HxrkzBAtA6JSFWOBrcnS/JpqRhfJx6d9hI SeypUX9qqQ36gH1K2Y8KKRgImJDw9TFFgorX3kY1RCwqZrCrqaOQwmec0x2wN6h1A/ZX Bx5e4K2TX/6lQQT8V4+3j4mzIOlnyzivpjuWLZ/fPMcGq/PGsdofGdpvOwg2KEN2fypY vnQqLcScZniohcQUy/BOLjL5x9Q11v2oCFIMHV0nxwl5jJvUCOhUYRvUaRnvzGvklox1 pjjQ== X-Gm-Message-State: AOJu0YwmCo7pG1kLFCiB4oq0/oT1K8B7E0KCrvkX0HXmHrhPA6pecSw7 W93MfhuSO3tQVVZ2lfd2W5iZ02kNNptyHObc6Pcj4HuaCoGl3oDKs9x0kNlL54Q= X-Received: by 2002:a5d:6407:0:b0:33b:4709:ebf with SMTP id z7-20020a5d6407000000b0033b47090ebfmr1526953wru.21.1707389912827; Thu, 08 Feb 2024 02:58:32 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUEzKL4CgznD3UgpWolekoohhZWOLvJFALxx9rAx3dGF1SU0pzgQp+2LrTuFUZApDjZ3mvzpKjNr5isRsMlIM87G9saJZTcU2n65K/EBE8wmeSLRMu0EZnGVntY2JMEoBFavVUTHHiX7ZzhG5Ub7dYNMgdYzLIbrVymk2P/yyw2T+BDvX22vCtbviqGNQzNIMDhQ88cotM3AIPV6IrJIBfwlszO86fVDitMdoG2DRcX3I7eIEBLyQXVsBUzssgZFQj3dAEpGvxmUEszkgsBNFwnzCEMDIFPVT5xkINFbZgW1KcITlBPWNFrfVQXQiMkT8iIR9QDCXnrvigVfgyupk0yzp0Rz7efgYjcvtNc8pNqR+rZgcoIj2Fzw7gumx7kntSkWiBtVIKImetPmbaNKCqoL4lLv+eyly1I44VC9KVJAMQrJhDNKrpymT4yCxhxKA7wYt4XK/u+LUqf1wXMT+PbXhh+dXWx6BCLwGKnwuqoAxCSALazD6gIhbJQ3lQQIks9VMGN7Xm3eg== Received: from claudiu-X670E-Pro-RS.. ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id a6-20020adffac6000000b0033b4a52bfbfsm3344153wrs.57.2024.02.08.02.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 02:58:32 -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 v6 6/9] watchdog: rzg2l_wdt: Remove comparison with zero Date: Thu, 8 Feb 2024 12:58:14 +0200 Message-Id: <20240208105817.2619703-7-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208105817.2619703-1-claudiu.beznea.uj@bp.renesas.com> References: <20240208105817.2619703-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: 1790334805826929232 X-GMAIL-MSGID: 1790334805826929232 |
Series |
watchdog: rzg2l_wdt: Add support for RZ/G3S
|
|
Commit Message
claudiu beznea
Feb. 8, 2024, 10:58 a.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 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);