Message ID | 20240228083253.2640997-7-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-84682-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3210724dyb; Wed, 28 Feb 2024 00:36:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUFznwCyz/N5PdSlEyOfCMYXd2hajnw6PpVmWy+evcn84bbtDFoBQJRkjrkNlX4q9WH1SRjnEap9Uw2wi3aTW+ENVHRLw== X-Google-Smtp-Source: AGHT+IGBDDPzWvGm9fPgctUZeVxx5uK5E6xaLkUBCdrSxAlTEsQ3upE+3woN1cfor3ylELnb9J8j X-Received: by 2002:a17:90a:bd0a:b0:299:3ebf:d180 with SMTP id y10-20020a17090abd0a00b002993ebfd180mr10601763pjr.6.1709109389212; Wed, 28 Feb 2024 00:36:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709109389; cv=pass; d=google.com; s=arc-20160816; b=wXpWdg7jXRWQNFZsQEJhOtrwtJTKJdsVz/2UGflRXPnRso+bfdsWoPaa0w53489yIF 7iBDqbFf7Wxg1HFlVR01V+5ZdoXs0f9RTZp0XeAA778cFCkx2Boa5DStmq8cMBPXaDbm RMOK+CTQF52ChXsK7wliWtAv2wPjvIXCqVJthTo49I250A5EI66vjd+nZ6is1jCA+870 dPHceRvJiudS7ca3E0MC9tujOmAiaqyovK+M992hrMLXp+pW44t2pmAWegX9dUlxpaVV poucf2FC/ZnrSmvHQ2IGKUT9GcFWtG/ZZgx6LpzltJfAhOHlo4jZ/nOzUGEORUszymmL OpFg== 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=N2oYKm4kbcjnrzOPJaN5bBfK4oadekuOvRl8x7PJBXU=; fh=40n+/ax6/TwWDdIfyvrWNrUwg0n4BBAH13CBKCAYL98=; b=Xj7RG/2ktdH0hCwzis7TPu+x3DUUItQHtPVzRcY+KIYBlkBjRb3K5pVQ2bpni3Bj/e TBwhUzpjS8RBu4m0BOgXdIPul/GNU+Idd+STRToF0pMnAD8Yrh235IwMht7HtnBKol6P YMWp2FC56yjU0bM0RgZtEQPQZkNL+hUnnFTS9EsVvxr6w9FE9agdqklKbYONcMkC/xeX wpkIZtg7UDejjQcAHK+NW83BHgN08aeiB2SGVz6R3Ef/e+KsxdNc04e8vyS0aJML611C xt1zJaDE19BsWj4bkmsm1/rZ9nsapiHN7iOu6zCqCntKA3B1e4jMryLgt7DsMJojaUZk MCFg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=mCqO27KJ; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-84682-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84682-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mw7-20020a17090b4d0700b00298e649da8csi968290pjb.135.2024.02.28.00.36.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:36:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84682-ouuuleilei=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=mCqO27KJ; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-84682-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84682-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D041A28307E for <ouuuleilei@gmail.com>; Wed, 28 Feb 2024 08:35:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A66A6381D2; Wed, 28 Feb 2024 08:33:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="mCqO27KJ" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 8AC9E3613C for <linux-kernel@vger.kernel.org>; Wed, 28 Feb 2024 08:33:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709109206; cv=none; b=P4qDcroU6zdYMVqaaWAsOWBbl9zeylvg1xSad3qG+TBe1jsnbJ2Eq8VZ7BGLIKkHmC+XGLrwSZrxva+i2ErY23REbqiO5YLCBoL5dZt1LVBoNmj5dL76Uo03r06TfDMSiH5WutsBWagCgxUyhVMe+8G+LqYh6T/60L3JLYmmlD0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709109206; c=relaxed/simple; bh=zMATGWmbhje5tfDxfaCFVw5MU9tqi71sQIaQ5Z5dkgc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ragRWnA5ekLDgE0h3WMVd59y5++WtWUnPFYQwU6MS8N7eFVqraqHgiGr1VBdB/YD/DlqN1MxCk9+oazmPQljAGgMhEc7/Z3xK5nh8OPM6CGkvdH2sliuDeRhlBneYDAqFjWpYHJ1Dryy9RDewkyVa5e3wZXTcysiRS/97G6Fd20= 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=mCqO27KJ; arc=none smtp.client-ip=209.85.218.46 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-f46.google.com with SMTP id a640c23a62f3a-a3ed9cae56fso109786966b.1 for <linux-kernel@vger.kernel.org>; Wed, 28 Feb 2024 00:33:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1709109203; x=1709714003; 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=N2oYKm4kbcjnrzOPJaN5bBfK4oadekuOvRl8x7PJBXU=; b=mCqO27KJ0IiF9CFQu6XrmeICFGNZ30/aPnUv9BS40YIcd6qlC1XDQSDJd4lr8m9GEM XAEc9Y8q4oHPN9b8Dll/ZgqKE5ESH6LMDFr3WIengVrh2DYsdOeWAqZsfb4ufxAvx2Sg h2QRn0sK/U2mA9N2myAnskINHSKuXzvIm/xw9vdx4a+YoEN3Z/Isb640V4m0dE0AbM5X l6LY26vqaaCVC3SPnUf16bxUpATGVC9XYMwASEs5wWgBpsgyHk/B7C2im1OJ6UymV1hp IJ9nrwqLRlNYXRV1hDMM3aZlH1HQusOLq61+qXM8rfcqTKDp54MC59eoXYdc6D/cdzPj lXEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709109203; x=1709714003; 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=N2oYKm4kbcjnrzOPJaN5bBfK4oadekuOvRl8x7PJBXU=; b=Tb+4H44QOrcLI6YG528fsIjFmw6eGivVfkaqhFT4pzDRRf80flCTW++5ITM+mAH0CL uf9YiIzc/6VyxR7qExvuTsfjmZa+xvezggJM/TXdjf+PbAzg6g9ljP84e7nHTt+yfn5g f5zheBfRa9NvHOV6yDF081JfD6ta7tB8T37jq9XABqb5V93YaAZIRWMo02okI7KJClrO g9I81Oyx585neiGzDMucFJ6I0UWtq1i9bM8jpE9gdW3i/1QX+ae/LlgZSK7sXZNiPIn8 TohoXby7gOCC4b9B3vdVoPRQJJNBTXO3FxP5hGOQ5XhBmRJW0hf7X6My+yq+tQJdM6sd iVMA== X-Forwarded-Encrypted: i=1; AJvYcCVQta7zrKhV6hqlSZ0ConH3lWh7lYRWxGoYmtB3+TMRWTxoCSW313NWXof38B3pztzYQWsFIX9X/0hJgcv0YXkITFvz2ryKlN2YkyPe X-Gm-Message-State: AOJu0YzN1mL4yX9yLbILSfzS6cWEJHsheszBpTHSv/XGHxRe4Z6RUzdR uE+vdcYpqURLVylInfN/VjMGhjwP7nbnPKWuO+H4BEJeyl5yU6Ld0O3joVSve4o= X-Received: by 2002:a17:906:f357:b0:a44:591:a3d8 with SMTP id hg23-20020a170906f35700b00a440591a3d8mr669369ejb.31.1709109203006; Wed, 28 Feb 2024 00:33:23 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.83]) by smtp.gmail.com with ESMTPSA id qh16-20020a170906ecb000b00a432777eb77sm1593987ejb.60.2024.02.28.00.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:33:22 -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 v8 06/10] watchdog: rzg2l_wdt: Remove comparison with zero Date: Wed, 28 Feb 2024 10:32:49 +0200 Message-Id: <20240228083253.2640997-7-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240228083253.2640997-1-claudiu.beznea.uj@bp.renesas.com> References: <20240228083253.2640997-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: 1792131087002058586 X-GMAIL-MSGID: 1792131087002058586 |
Series |
watchdog: rzg2l_wdt: Add support for RZ/G3S
|
|
Commit Message
claudiu beznea
Feb. 28, 2024, 8:32 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 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 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);