Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp479672rdb; Thu, 15 Feb 2024 06:13:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUPVnScwLa94T3s+5bQyGML/1hseAuDaLwwJZE+eiCSIDXHohJNz9Up2EZeiHMNo615Nv46+JFaL3XOSL1yStRoTBNrWnRQikwZEAEDvQ== X-Google-Smtp-Source: AGHT+IEgS5E2VzxYoD1PbkwxrMW+7ZpvDJDBQ+u0AJuds5/4DsHO/RnvUJngJt1UhHTsW9+r/mwT X-Received: by 2002:a05:6358:5928:b0:176:5a5e:4b7c with SMTP id g40-20020a056358592800b001765a5e4b7cmr2029048rwf.6.1708006423198; Thu, 15 Feb 2024 06:13:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708006423; cv=pass; d=google.com; s=arc-20160816; b=FeOW/yZ8a0975LXcfKhUY/OYM3T1n5V/OD2NDIZmUYy4XH1/cvqwMmGBs0+72c7MVP k5W+XAgAGyJI0BRBKWC/N3wIBIcbTwu6P8zIaNjajFyJXq+iaJbrzEjNiPih0hmOKUmn tJLnzijg27zyFb5DAmGT9H9KxqzdsIy77r3p51KJH1LtoCe6HLexNpA7m4A8pERY8IsW fgD92DxzYWKL5SchSXOAQySNCJSK4lV8OeyxpO4Sn61XwSdAJSwQX9IK5HHNt7vHj4Xg p0f+TMX6i6+E8YfY/miIVpX4U9lr2cHEdDFywKj27YFncaTYoT9DXNlMhRf6p75Z22H+ vO4g== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67055-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id be15-20020a056a001f0f00b006e0f4907ebasi1217375pfb.113.2024.02.15.06.13.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 06:13:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67055-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67055-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 102E128C185 for ; Thu, 15 Feb 2024 14:10:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13164133299; Thu, 15 Feb 2024 14:09:09 +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 ; 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 ; 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 X-Google-Original-From: Claudiu 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Claudiu Beznea 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 --- 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); -- 2.39.2