Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp259602rdb; Mon, 22 Jan 2024 03:24:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRc0++vh50M6pO7FGUv5WL6TA3SGAaHX4nm+gqJQVi6Wcl+mdHHaA8eCt9x30yb5HE+fdi X-Received: by 2002:ad4:5f49:0:b0:686:2704:97a0 with SMTP id p9-20020ad45f49000000b00686270497a0mr4653133qvg.60.1705922695213; Mon, 22 Jan 2024 03:24:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705922695; cv=pass; d=google.com; s=arc-20160816; b=Te8PP2rpGBMSHv13UqLbS14B7713rHy1iVopoB/CGBxL2j4ryO2UuOq5DZUA29NUXQ A5gQjFpAYQG25PH5sFiSTXjC1gsoeXGxDuXzrpJzUbOCbxD6Tah+dcuOIXM0bCvbkALP 6wjHvyGFyKr99ONXs9N71a7kb5bvRspb5gAXvvoilpDiNBI3G1+6XMS1h6mQSnZ/rBBh suZCLG3VKl7gmxA8S/9lwa1vwvkDTZGCh9PnANVmu2wUtlItW8D9LYYPLCmnjwIckvhj Cr2jKU6CD0IWDElYcEHdavwgijU5RE8VyeO+dE3kfDOzR03zgv8LDIaQ/H7T/jpN5c1h t9pA== 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=TiQV2ILDyfuhRtQ7ScYQPUgegRvmagL9x54ZH9Lb49w=; fh=udVwO0NRYY7+WHGry+7JLVq01vR2BwLxtvAczjMVMl8=; b=GlPWLad8+St4NWZGjBPXq9D6zC9W0PCyVOZwGkZ+zgzZ1U1LLFrgqM56ICLWR+dZRe poGWx999N2zytQSHinRa7EpHu3Vaa7nbRLXlx8rDu0ZXM+fBJZZuFKZLo8LoKUzZm8c2 hHNIpjN7HHyBgJNdRea8v0XCWHquYlrioF2BmvAlS08r/o5ckTnS+FKmRYC7dyiBBHnx lamkBV3yrPKognSZg/cLhXUTKEugJttUU+uEz9YI4sBrkPOGPHdd1ntXf2BLiRpa+rzj TXVV7IORR5pCKBwxD9xljWGLNQ5w8vKE0UNBTRxOVJT3MtcKG63OUZSMly1uBrWXUgr0 6+Bg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=nijsCHoc; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-32878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32878-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n19-20020a0cdc93000000b00683b603ea43si5376264qvk.378.2024.01.22.03.24.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 03:24:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32878-linux.lists.archive=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=nijsCHoc; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-32878-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32878-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F3DC31C208DF for ; Mon, 22 Jan 2024 11:24:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38C9E4A9AF; Mon, 22 Jan 2024 11:11:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="nijsCHoc" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 AF2D23EA9F for ; Mon, 22 Jan 2024 11:11:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705921911; cv=none; b=cGugtVauUylQIAK1jbWGsK7E8ypZqsmpe4abbNFkEjLEVj5v6/yZT+3HEal64VfgRnRSGRSQexEPQp9PSed5xZJqoaAsG16A/7/V/6HcptQ2NXvd5keyY0553p7zZsG0QmwHjVGR3rQiNpUwg2wOsg4G3x+3NUjSzPj9gYtvkj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705921911; c=relaxed/simple; bh=NCms0ZLKEiS45wOrj0dlqugM1ADv/GfHrMYyZSUMCAU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N5JtP40Pu+99WSXL2l3viv+wi9mXJk/g8jzjNQqdIsdd9XVAuGBcidLFyK9gm07gQgR/8Tb3fI76KA/MCyyYdNdKaLj6wSRZX+72an6SbQzEoJSWtFy7fiqUEgc5MPRNLIv2I78wGyePSuRu5kwovbZskg+CoZdbCqkDp6EFGwY= 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=nijsCHoc; arc=none smtp.client-ip=209.85.208.54 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-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-55a44bb66d3so3247401a12.1 for ; Mon, 22 Jan 2024 03:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1705921907; x=1706526707; 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=TiQV2ILDyfuhRtQ7ScYQPUgegRvmagL9x54ZH9Lb49w=; b=nijsCHocPE5ZB9iHmVfCjfjAxCX7AeGKT+ddW4PwI+x7M7q/T271ujTfXC60gi8jjW mmuUFm/sVZrx0rO10EXAmi6eXGIR0F771uutfiLeR5uFBiPMvJiDd6maM95dWGRk27XV 5nfBElckZqn+/p1ALOuAUHFjOIyFvXeN/TYqatT3Y720oZ1IzaOYz0uiTvMdQBJhrC7T l0TsYVJEZev4uE0dhHb6ZQagKu1Qo92n44N9HeNKTbatdYrk2HwcV4LuQsBL6BEoQIV+ dcB8gsOb6a9Nu07OzCUqtW3NdKQssCc3a2BYo6COGGrgUQ+YkYcr+eOaAcgWDTVQMvEU 8nIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705921907; x=1706526707; 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=TiQV2ILDyfuhRtQ7ScYQPUgegRvmagL9x54ZH9Lb49w=; b=pji0KmCklqKsTNEIHbnFB3IVuQgcnNJsqRDxP5SwvI+dorQpdvl3IvqP0FIOCbA2dc 7qJNdZVssh1V9+c+ceaK0nxr80v0fPxZxnNB50xC4SaZbnNEDosRLeroVNOpB9vOs6an 2EiDplSzUEbPPZMDph8vcMVIokpFb8JYJ7eGLxRkHwhCpSE9ueSLSyvO3VuEvdDlUx+B vrUHX0+B9cK8oVoA7RkX2DCJlAMLmgEfH+GzlN3QVgIO9bXrbiFsPZjgHk8Ho1JVkEjW KjBlM54vjz0MPVJWQM6chfIVtyCcto5Hv5KVAJsWpnELtoW8phVwEE+Rbv7xhpWNKg/+ FLWQ== X-Gm-Message-State: AOJu0YxQ4a9PS/NK7pyMafwxnHz9/nWC23VT1UlwwbWwKGZ7Meg9y9ay HLkCZIvcFeSusws/1pauU9LtNdLHAMCWjMw59asJjeKDjEP5iU/L/TucNtx7JbA= X-Received: by 2002:a05:6402:4302:b0:55c:4b7:cbe with SMTP id m2-20020a056402430200b0055c04b70cbemr1637215edc.16.1705921906857; Mon, 22 Jan 2024 03:11:46 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.135]) by smtp.gmail.com with ESMTPSA id t34-20020a056402242200b0055823c2ae17sm14194241eda.64.2024.01.22.03.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 03:11:46 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, 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, linux-clk@vger.kernel.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH 05/10] watchdog: rzg2l_wdt: Remove comparison with zero Date: Mon, 22 Jan 2024 13:11:10 +0200 Message-Id: <20240122111115.2861835-6-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240122111115.2861835-1-claudiu.beznea.uj@bp.renesas.com> References: <20240122111115.2861835-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 --- 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 988926e50741..38607673e1a5 100644 --- a/drivers/watchdog/rzg2l_wdt.c +++ b/drivers/watchdog/rzg2l_wdt.c @@ -311,7 +311,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