Message ID | 20240202075849.3422380-6-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-49399-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp915128dyc; Sat, 3 Feb 2024 00:42:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IErA1GPpdxthkMoKR/awM1I2d6jz4fG+bMXA4CI8FwxIAsqAxuqKhrlUPDMrDDnjpbTHRzB X-Received: by 2002:a92:d14b:0:b0:362:b459:11cd with SMTP id t11-20020a92d14b000000b00362b45911cdmr4811141ilg.6.1706949759857; Sat, 03 Feb 2024 00:42:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706949759; cv=pass; d=google.com; s=arc-20160816; b=OoUOHbWnvim6VvTIQ3wzorkLRmBwhWdcuv1OoDMjvujaI6cJF9AFeXEPgUOEEcNP+v JEg2mk+3HZWc8094Dr+OW8AUGLxtL5LjFuRsRXvGlWI6UPnjVRg8PMtpBksyGPr7Q32n q5054vo2Ui2nKWiFWZJ3NAyQ5b5jkeoUcJ62Z3HJFXEqSovA8w2NgUJYTFqp4DA9CCcj BNHoHi/8wigjEBa4n6ALUHXOwfyQjW3h4otJgEHbCPeGVMonmHOVZ2MeQRS2idHS0l9x knkUij5H/4xokoHzLqUrVVJMCsxoo4hsLspBUHzK04Xnz6Ye3YU7qarESChQfi9RcpL5 ifaA== 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=wk2sgSULD2EZlARjAWF2gEN/OqQBx+GrergIKsDdywo=; fh=PSTu7H8n49qkeKl7p74NI/viVEWYjS7RMcgIkkK/6O4=; b=OCssQLWyzLFn2kmk2vPfDhXVucKcWRr9cfSUCW3pL/wkvyMap8dmbFB5Epjt6j3LkE m2t+dsnu2n4OzpiYATNiKSLiD4Bhvt8J/Kr7p61D3pVDf66HLK5fshEnrmggM5sVTD76 iYt+oURYxriaBF6Dom4JFjIsJJvniXHYZVLTTe7V+nIvsP8J/ZgxI6soboR3sLDVmodf EyKy+a8T5gY0azNFGizQ7nXLyfMjXTF0gKLMcfomNt5ZUaFiVzvpCN7kiminDa/E08Zn v33G22UyoALo/kscHPMPLxANRkdVwAL6KuUrybZRltlOWIvotDeFsZ4c/hMniteg5M2g MI+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=SkMvOwbB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-49399-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49399-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCV9t88oK+DvZbKGNyo7oZUqZieROZIFMUuPeHZCc+XX/HQtnsU+Qh9lL0hfMDnxpbDvQT7opcYxX3P+Y/0PaxZAUmeLfQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v64-20020a632f43000000b005ce3cd4ed95si2925059pgv.94.2024.02.03.00.42.39 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 00:42:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49399-ouuuleilei=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=SkMvOwbB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-49399-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49399-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 5D60628F83C for <ouuuleilei@gmail.com>; Fri, 2 Feb 2024 08:01:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E817B22085; Fri, 2 Feb 2024 07:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="SkMvOwbB" 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 3205F18AEE for <linux-kernel@vger.kernel.org>; Fri, 2 Feb 2024 07:59:09 +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=1706860751; cv=none; b=bh2ThjZDxe/o51DhDO9afDwyWwLBaUMvSYa676rp8G1ICz0NHJpJMZTeBacJRt4RbkIR4zuZ+zDAr2ZKuzkv0Apgvg594eXgWI8I0OV1AwiiUX3zFd3zV1fSKnG6xlbPx2yeEhnGd+9TK732uQCZB8Qsr/3PMvJeXqk1PYBpSvI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706860751; c=relaxed/simple; bh=+3HoKrINx8E+isoQN2zUwSYc2xCOP4127guZ+SvOjTM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aOHpbzGaVYBnnqO9FopEim1h/nSY6/l7nOwmyMj9MgFHBMadqp8PO5j3R3u/koSYwiMf9igqObPq8I5x9CazLA8YUwrLI+PQg8Xgrr3F8/XavAMWZBB/RO06N5hw/Mo4nUYsvFaY0RQO/09f6oPBOI6lkHXTeTNH672AeDtPt2Y= 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=SkMvOwbB; 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-a350bfcc621so216597666b.0 for <linux-kernel@vger.kernel.org>; Thu, 01 Feb 2024 23:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1706860747; x=1707465547; 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=wk2sgSULD2EZlARjAWF2gEN/OqQBx+GrergIKsDdywo=; b=SkMvOwbB14SBShezZ2cY30RI+BupSPUNnGnvyWqpJg5wLnNycHqrPxcmWjij4OIM8B btS7Vs7ZKOWzXhmZdFBRvrYVqfs99cipXSZetCFt4Pl4Npgtdi5N35+darGsWVS1ohuK dr0/2Cq6DHuPIa61JBNMCbWZiDba2+qulOhoskhydh2mdNOcwZg1+YMIDEVofjyVbc8K TGK37PGdqjHj4J79x9B0cddS4+0DxWfFwCN8KEk3kEb9eEjdCZfyMkuzXMRYi8Zm7smy 5cI305xOydpC5dOYKD8IXyNzC/PyyjOE36wO9HwVu86HFfvPvOohTbd4fMt4iHMmiFio 5xxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706860747; x=1707465547; 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=wk2sgSULD2EZlARjAWF2gEN/OqQBx+GrergIKsDdywo=; b=k4iFPsheeZaI8yufIORNlCQ418HPL/4dtEsJnZ2D5vT3cXoc6bASp1HuVVFLJeqCmk oSmvQLtjG4E0+BvbYTvpMO1BltSslvARcHuoyEchtRZqzpi/n7DnQFlS/EzSRJVmm9Sm 7ykM9t4PZJqXz6HezIXhNClUVKLbkNfwu4JJzu8Tc2B6HCV0xdRtI8AdU0Jkt4psGGYF wKiLEeuiPXSD4OF6ayhddMcxBys5orsFq7WpNWgL1/1GphIWBjfJCweJBFAEgHRjhXDQ by+n952xUZSWDox5HpYm6WbZdCo3tGANX0F7XLF70qGvr1RyTSEY26XYV/7D8GqwTQRY RikA== X-Gm-Message-State: AOJu0Yx9mX/202TDdu8+r9FtMWTGQ4mgmLEJWw0+Hg0dKjgnTMNfOG7K xuvFSTbXxHSn4vU+qtmXvUODNnQe5+KUyViWsurd4roRyqi2ASXCw0zsU0AP/eo= X-Received: by 2002:a17:906:d10a:b0:a31:58fc:bd83 with SMTP id b10-20020a170906d10a00b00a3158fcbd83mr962292ejz.10.1706860747016; Thu, 01 Feb 2024 23:59:07 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVLdJx38gMdhqHaunvA3yjh3MJnT8FYni2DoIecRvOOHCKb5u5bSqVX1faQieKPGFlJqn7fMkaZDjiIu26PwX6DKL9lNIWrIdbWeW3IUplBecaSVUzeNrRz8PFs7hrJO5yEnOW6EdiRQKkV/PrH6+kwfgVquXatxu3YfdeY6z0MJIkp2EH8n2rhUJzKVogc0VDpb2leTAUlCYEkUX0voBftLqSL+Y8wj/jfW+arRjuAz/fftt4SfYiyXMjxYJO1mF7zmcJ2oDlovbSelqROCm59Jdb1oHPQLyp5ywBCIs3RLqKA2uQBYxJvk8cTGITv7aDuLywVKc+2soh80q673gDHse9rP0LCuR05bI8UnnS5rwEBaTe9vfRNpspLLw0cO8FElvDSCOF56oHlcF6KtypVZxAvtjurTRXQ/JfHWz80rDrB85JWJp2I5sEXhxtvZVfcKXE1+fSS4MhuW1IRiZcKyvUbsTlYfkY/oiysfMSKzbBsDwuQ3cSkcGEBo93aGoaTEe+Evtt5tw== Received: from claudiu-X670E-Pro-RS.. ([82.78.167.87]) by smtp.gmail.com with ESMTPSA id ty13-20020a170907c70d00b00a3715be38c4sm185544ejc.210.2024.02.01.23.59.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 23:59:06 -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 v3 5/8] watchdog: rzg2l_wdt: Remove comparison with zero Date: Fri, 2 Feb 2024 09:58:46 +0200 Message-Id: <20240202075849.3422380-6-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240202075849.3422380-1-claudiu.beznea.uj@bp.renesas.com> References: <20240202075849.3422380-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: 1789866551512448514 X-GMAIL-MSGID: 1789866551512448514 |
Series |
watchdog: rzg2l_wdt: Add support for RZ/G3S
|
|
Commit Message
claudiu beznea
Feb. 2, 2024, 7: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 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);