Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1788084rdb; Sun, 4 Feb 2024 01:06:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpcPSc3s6jVbT6QyVhsYLcSasnsgf3MDYCU32IYmrKl9+/Q6RDqflBAguJj3ss1Vd3+6ec X-Received: by 2002:a05:6512:6d1:b0:511:4a6e:59c1 with SMTP id u17-20020a05651206d100b005114a6e59c1mr1200451lff.3.1707037587633; Sun, 04 Feb 2024 01:06:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707037587; cv=pass; d=google.com; s=arc-20160816; b=gM1sCP56puL7hraztHP3OnGSdgTD0YZCgfomTgVuExH/V1rc+DWZO3Z36M1T2OdXSv 8AdGNoNUnYAsHnRXx6YGZu6SMUF/LA+IgX9sDRHqpmhaHE39cpWKtmLQ8qQE7ZP8twqJ OjMbJU1z/HC0Ifyi706CFH3bnS3s6PPrcoJttuF+I8wuXuEqbXz2qH9ymVAyDdFjQfvL mmJ90NKGrfIpZbBc3F6MlFKwfamnRKNeOXWHwziwNdrefs06HcaFnErQVmF9hSLyC0V4 t3mdfo/VqId70HurNbYfIZp+dNzW6mTbPVS4aPpHmMLIOX9yDQ9eCw5q7Bxv4j2zMo2p msjg== 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=E5OzYT3cult1p/7GyGRh+4k2vVngStafXNBrUxwuDPE=; b=bY9GifhM9oJg6fIj042L+Kxd8HCEHMl8OFr6fKriF/jvN/8IXNBqOSpiO4fiKgyq1p Fkamv/Y2WS3Bq8L/7+QZRbIW7vH7ksqVdtQvWjJqBEDTdQLw4DXH2WeHd03EKY8XkuRs /qWptcWmEd3lCgFVxJRkIp0ifUYzhOUdyUvIrEIEgYMEfvoy/TPyiaLMdY2hvS+qXMQL rVAJzqTtGHOA/yxU7Y5bpffgNHDz7dngBPUCJOcRL0SBq1tih25UeQVSTAs/plj1kV24 bWzqpWKfbqmJ2D8p+F935AyUwzWF1B6il8PNBDSr7XYjBfp5XNt5rvwWawGRcSvwZEzJ Th+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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49399-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUHLzpxMJZT1SshnMiur2N2GD9ie08w1dD0xXdxSvyS/B0uDyZHrTdx687F7s9twuEIZEe01ikj3019ymTG+HDUaBtqFPeTSwgsGxJ4Gw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d21-20020a170906041500b00a37654d0804si1091137eja.145.2024.02.04.01.06.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 01:06:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49399-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B91AC1F298A3 for ; Fri, 2 Feb 2024 08:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F1EE1A702; Fri, 2 Feb 2024 07:59:12 +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 ; 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 ; 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 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 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: 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 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