Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp296072lqh; Fri, 31 May 2024 01:17:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4ONGCdLMT4DFk5/MxXL3Z7r4uMw3QgiL6wts8VY7mCg1O8HJfTmWW4xRxWHuXpwp1m7DSz95sVc5uLdbFeIVgJIY3me4ekJARJ41uoA== X-Google-Smtp-Source: AGHT+IF0j6MrT1MUaeozkJwJyhggp4rHb1uOOYi4Zs5kyPM9CWAh6GMKi+sTvsZuWWyDNppskibk X-Received: by 2002:a05:6358:7247:b0:19b:5f12:8f68 with SMTP id e5c5f4694b2df-19b5f1290efmr43876655d.20.1717143432617; Fri, 31 May 2024 01:17:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717143432; cv=pass; d=google.com; s=arc-20160816; b=c9nwVgCcrXN0V+57kKoFSooxEmRUA4G1lfSmEps3UjVG/lPU6s8vdhWrWr6bZclOxp YFgZGBb/yeE53Osn9HyuHYI7F1sLxRPI/Nyki0O4kWWByvYLY/4ORG5Gu/4pl+F3qd05 FFPzpVDfuzOHgjnXWWZE/qRSat+hyI5ai7jGvUQTkn9yE6BXVAJFInaGE8h0XSY8N1ae o0KuyEUNFWUwmNBHKQW8Zx5RehvHsdylHQmN0VOSsfrdHTlh5OeOQ5B124LDIzZDsdB6 06cybhIZvfhYUMhfS5JxLnhz6CHtVNLCHpRf7cpc6Df7f8ExcPzziC0DpHrLjgnmkzmp np7Q== 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=UnbFNt57mDlPrk/+6HbliL0AWlskuevESgsdP0A0m0w=; fh=qzirT90RJSgdZAvxwIcN3Hdplo73hvcbvC1nd18W0og=; b=QyF029oPqWkzC612iNiT8T6CgeQStP5rnQdZmLfO9bCDjPidbWNfVxo++IE1hxjgBr eL+jYvuKd4ovciRm671VcuPOCUn1WLJM7vS9iKrwxsHCVseq6NKs7iEOE6nQdlq/y5Nt XBajtsnR0n85UxMneUI/Zk5Kz9xS4uSNwWJlZhH/N9C/oVEWkrQEb7VfU7yMtMhZwB25 JPw9pg/Yw0TZtY688VocnR7AHC/IsuqGDJ6j/48BWpD/llEqmiUqLr+34Xbr1K8eyyrc EdwvISFHpfkJlf9RasNGKxb6uHZxIgZpuoWCvjMUQHHxMoSj999RZdMsTjxUF1lzVXU/ RQ8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=eay1DwKa; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-196381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196381-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35d973cb7si1109846a12.889.2024.05.31.01.17.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 01:17:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=eay1DwKa; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-196381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196381-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 044852887FC for ; Fri, 31 May 2024 06:59:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE89584FAE; Fri, 31 May 2024 06:58:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="eay1DwKa" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 9EB0A82483 for ; Fri, 31 May 2024 06:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717138681; cv=none; b=a6/vcNxIFIMXa3pB7N1KT6+KNGrhkbZu4xKHIUHBbooNfppkIbaOsT4SdfqVUVFWS7peTSR+l+NfrlD5Hd8xD/7vlYqLpXRfteOJLZdArMJ1sUo/wo3oCUQFMFYX6NKqjUtAGSRtkDtm+BOnS0idEzBwfIXn+/hpNjLY7OieSdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717138681; c=relaxed/simple; bh=C5J7n6mawG/YSKbecNqxc9g3YGlBb0G/F+anEupQ//M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RCFSmwqq+MUhUkFWI2xdgoVHTUoIAJ7CUtrXKeOvhpvigqKYe10MCws28Sx7Hiu1hEJ9tXIHshXSP4B6ZcE5LeCJOAuOI6+CI912GnMbV9ECRntTk917Hb1kP6kiqTPWIxld5yn1I77hHnf+j3HsWYR6UzCwDFFDNANa7eIm/M0= 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=eay1DwKa; arc=none smtp.client-ip=209.85.218.50 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-ej1-f50.google.com with SMTP id a640c23a62f3a-a6341cf2c99so171052266b.0 for ; Thu, 30 May 2024 23:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1717138678; x=1717743478; 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=UnbFNt57mDlPrk/+6HbliL0AWlskuevESgsdP0A0m0w=; b=eay1DwKapbNh9NbYBIMgLZeli+U9sm00ya2Pe3hNq0Xw6vyLmKeW0ShbfbhYhqAKlB FxlYe0+hR6FehzJ4WstDi2g509wq7AzaTQqlt5kzZ5sharat5w3H+S8qYaS+Dm3s9ruN Fv7RxRxBbp08oLrvRCdEk+MeSLsvPU+az/1cHqJINBElenZcHapU+uGoYrWX/JyG/9jv zvhkKARkodOUf1xOCr+fXGIc2hW1nJ4gR1GAehUzuAwEC99YSelvvXZUKDuTQmbZiCZH 0Hy62yfvOcd3KhRR3i5QMfp7ih2ht9Jp3u/oNGzH8exK9FTTDKvOu0bA4GZW0iY91KcF bE6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717138678; x=1717743478; 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=UnbFNt57mDlPrk/+6HbliL0AWlskuevESgsdP0A0m0w=; b=aNWBNW5i45VDG3JRw7+se7RxwPtyiBqb1UyKnX246HIxpdfyqI2w9zDvNpQhCua3uo 1DiQ63NKXcR7obdGHu/E2Fm+Fu+1QjABUJkb5RCm6mdYEA81+/pAGXvSJQD2LjdIiQhD rCK7jxio8AMxwyYUOJkTQZqAaembj7qKovjg/BsD/nz6vVIh8kT5U0InAEJxHkt/WNSG 6dRUrH+K1UdVrl1SdBrLgTQW9EABM7KhN7ktJm5bAUobVYpBnB9Z4veMHxDUaIRF00tI 9+ysAOZnkBpMfK2P7OHP/GUDdFuFAhWDOP82LR7qgi/Bk+pCVH4eSlUuIYpEqveqVN8S 2uJg== X-Forwarded-Encrypted: i=1; AJvYcCWVZHKLL+s2rLdZsmzNPX/tZHpsxWAONaz2wE0VcdgHmVYNDaBGla6+vwS50w22jSXo/s8WoR4YuFrdZoDlIkRVgvxbvY23fmftwLjo X-Gm-Message-State: AOJu0Yz9ZxJk+Wi1Tu/Sfn2fIJcT+Nsp/C2rR7BA9wL8WomaZn8crIya G903a6ONnuqZZUxca2oVEh4OlNnruqVA8w9Hyh22x0/9ewuvVjCqJjo7Euui48s= X-Received: by 2002:a17:906:600a:b0:a66:a24f:13c with SMTP id a640c23a62f3a-a681f87ea17mr57762066b.4.1717138677878; Thu, 30 May 2024 23:57:57 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.157]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a67e73fc1a5sm54205566b.53.2024.05.30.23.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 23:57:57 -0700 (PDT) From: Claudiu X-Google-Original-From: Claudiu To: wim@linux-watchdog.org, linux@roeck-us.net, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de, geert+renesas@glider.be, magnus.damm@gmail.com Cc: biju.das.jz@bp.renesas.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, claudiu.beznea.uj@bp.renesas.com Subject: [PATCH v9 6/9] watchdog: rzg2l_wdt: Remove comparison with zero Date: Fri, 31 May 2024 09:57:20 +0300 Message-Id: <20240531065723.1085423-7-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240531065723.1085423-1-claudiu.beznea.uj@bp.renesas.com> References: <20240531065723.1085423-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 Reviewed-by: Guenter Roeck --- Changes in v9: - collected Guenter's Rb tag Changes in v8: - none 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 7aad66da138a..1f013dfd3c97 100644 --- a/drivers/watchdog/rzg2l_wdt.c +++ b/drivers/watchdog/rzg2l_wdt.c @@ -318,7 +318,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