Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp31878rdb; Thu, 1 Feb 2024 00:46:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfNnPCEjWoRCx9b8q2+azrdz1UW0bA9Da1i7HTHQXD9UhazwTPp+WOmpVbJxwoYIzXCz1M X-Received: by 2002:a17:906:19d0:b0:a36:71c1:1244 with SMTP id h16-20020a17090619d000b00a3671c11244mr3220244ejd.37.1706777194315; Thu, 01 Feb 2024 00:46:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706777194; cv=pass; d=google.com; s=arc-20160816; b=s5+putqkTsvlLUZrti8pBxQAi74ba6zl3JkQcUExVFgkkcbCvWeAdU66QrHquJOjpD k1/ySZ4og5jQByRUl3v+lOaiy1bnBRiMhCvQD9V/sg2Dk5l80QXB+UJ8lNrRhKU6Ih5m c/VPN9fvLMHH0/lekGTk0Dj4jDOJj8SJq1qU1yuWmlRoKUZ0n3QDHnCyqYhTPR2H04Sd nam34/IiSRDQqsMN0YVe9z9oE7Gd2Ge7UUxwp0nq9OEHWZ/EXmNkRWhbe5L/UCBt0tU5 6Q38qNRb5Xvn6XBayR3u9N7DRfE6+mel5ViIr9av2xmUEHlb1xPgHaatbBaYK+aeGEk1 O28A== 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=mO6jP/QWi6LCd6JhCn7qcYJB8RjfTTwNL1rKSjMisP8=; fh=Tbj4AdvQC77QwEqRVH7MMj2Az/7eB8xwwwqxgaMZTw4=; b=z6jVEN9TrJDOoDAFHLA9XxoIMqHuqJNLMuxlE4WrqSIxt51hARbYIejRIgRKRgIAAJ OI0U3B+jIe+DdUZleioyJJ3bTSuEJe0CWKE3fs3ANQPsSMElKNI6m48I0plVKQov6QDn cFJI3CmUpVZPIPV84ukSUAc5uL+bZQtQX6h9D+DL3VDHQtOsSsBKwA9VxD1JnWhtUcoo 1e+x/H4x3kQGutSOrUCdAcopgMYmjTfX5OPQz4ac+a2+vQEiHQqEXWFQwpzGBhxxjYtG lTHiUz6ywkjScGvqoJ/grlf5VoN8yEVYGIqUBCFVCyEwCB+2lQl+6gCKl/sfiLWJZjDw /JIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=RCEqASWB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-46208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46208-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCU8NsFyb5NdknjOsRzBMJL5qcsWEnHLoNFK4MGOFNovfq/wr7SJJPU/iO4SzO/qos9gjJ8WMKCCunEM4VleO7GG+e+o/LJ3sW7X4gE26Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l3-20020a170906644300b00a31914f5527si6515521ejn.714.2024.02.01.00.46.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 00:46:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=RCEqASWB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-46208-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46208-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 9483E1F2F7C3 for ; Wed, 31 Jan 2024 10:22:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A37E6DD1F; Wed, 31 Jan 2024 10:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="RCEqASWB" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.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 5011674E2F for ; Wed, 31 Jan 2024 10:20:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706696441; cv=none; b=E6RKBiUNVFKwgJvIEDAslmmc9eYD/dsvGIceKGG9BCv0laOLtQxGRKy43d9JBJDrVThyx5yjhAj+vRsAnfvFQJPB0Uf5exseIMeQc6O41vItZDVM76anH1/txqqAAgKCVNgCJ1vTv+FGS6bXvEDzaU2qaERBEpHYAjw5W5U6Asg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706696441; c=relaxed/simple; bh=H6FcSZimBVudTaR4rGYjmB2bIv0NVLGFUOR4xJQdDQs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZEITGRXHMBkWK5OJ3JJmW9iFzGYd8/uJ6mPULg105FKTHAr0z4lwSk6A9QkKk5EE+v5H+kpZXGtHJvBOesj9V7xtqJQUIaMxKq5wuFSi6svfzoaCXBEesJNCD1SCIaCOrKI5lwRebKHMqKz05Z+IrdRZpWshZINN/VTLlM7NjVo= 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=RCEqASWB; arc=none smtp.client-ip=209.85.208.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-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-55c33773c0aso5262911a12.1 for ; Wed, 31 Jan 2024 02:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1706696437; x=1707301237; 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=mO6jP/QWi6LCd6JhCn7qcYJB8RjfTTwNL1rKSjMisP8=; b=RCEqASWB6pmjujSA/Mu4ks1gJWH7zk0hRn8sQWvIeu3vulKYqFDOIdbqnzhZXXdUYb KJh51rnVOGljOMdBNmlRZNv1T1Kp7ZZZpa39MRO3rlr9+/QFO22xI/dseksSZxR1VY34 d/Ew5xSNS1culhR1Yv1MTYjQiwBQw0L++06BVBQtuJTkX7NTLUktQtSYAu/d1BuGsgGn s3nKepGUHlKNQyinB1K04GORykgAHg1d68ulWpq43b92CyTzsgOVN3eq6SvBt909bUsc rAcjkzXCmrkOr78VWywVMxOivBcdMrb7rSY2LDEdumqqrhP0uQFedMpSKVcwxAY2Ou9v 4r0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706696437; x=1707301237; 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=mO6jP/QWi6LCd6JhCn7qcYJB8RjfTTwNL1rKSjMisP8=; b=Yrsg04eZ02NwBXVxM14nC81NMw4E3JZyJJicsC7ORTZ1/8GpORxwIaFyJvNVrbGsHh 8J7QpfXcnLkW2uQC0SMwDdxG8gK0E1dVpjgzPjSu+guetR+bhmRJ4MF7D1DeDcJlUbmw Pk6T+7pk8R/oQP8qgKyF48cjq0mlrVih0ViB0earX2Ft0JC+NDrXcNoQpH8+MgJwgcch od/Q69WjQa5phYH2lvWEpf6D/ABM3XJXMe4XB9b98ZaSI3magFDM7iZznnseN8BzErSX bjcYQ60ZwEEEranS+pe8kRLtPHU02SpyLAIaIM9LhzhPtRkzDW8BDeiYo1KhLsmvLzjW LS1g== X-Gm-Message-State: AOJu0Yyvpyxzbmh77gPsa3k5NRLxbcyT/M4DaVx+cAhpOCxBj589Y1In tIDrLQXSI2DcLK2Xwog+TWHiiS1wqlaNUY++zRDequ8OzWcQG0vis1JZpGE9v20= X-Received: by 2002:a17:906:118a:b0:a35:88ad:e607 with SMTP id n10-20020a170906118a00b00a3588ade607mr839119eja.31.1706696437272; Wed, 31 Jan 2024 02:20:37 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXb5vxl7q0ujGxCfzWzXA0dChjsu9Kf97S3Ve32BMSyn4a1NBlfWCk3Wuif0En7CfdlWnancsZr1rNrLf3om04RD/LPCAEb+cGQbeOln+g1sQb5v2J23OD0y7me6quuIXZ5Yid90Xd2Z10lTnK+rq72d94ROsBN2lw6Oh8rurlBzj63CRqI3hr5jXY+FcK6XDlgoMXSABMRvUGxf+Nuea/BQ2ZZp7O5zCg3xi9L5hMjASYqN2/mgkD6GGgesBm+y0GWmkUbwAvcSIQ47TknFIg/P81lAqcVJRdrJYawL5kyqPFONXVtS+uGux7cOux5wQAvqAFa/ipD9uJXvGKreVR4hRsmnvs1OWOpzxtIxecU/+PP5MtpvudwdTjqstaBx2BtIEnvxFApFwA82x7HsoxgAJCeEErPr50vQJYeX+HXRCIS2ZDWtg+egoBMQJ0EHJscfSgvhOxeSXMoJJHTahswDp9K++71oexBmurSA0ijQwMHFthoNVz8juvuJFYK9SqtvilO+HHftEm7uO811iXko4x3ejuKgcPuHTROxtQiy5hMQqajeCmMx9cWMuy6lerTeBUbRnZ9MdCjYBIPAqctiynFSdteDn6OhwDlepM1onk= Received: from claudiu-X670E-Pro-RS.. ([82.78.167.87]) by smtp.gmail.com with ESMTPSA id vk6-20020a170907cbc600b00a3524be5a86sm5212966ejc.103.2024.01.31.02.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 02:20:36 -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 v2 06/11] watchdog: rzg2l_wdt: Remove comparison with zero Date: Wed, 31 Jan 2024 12:20:12 +0200 Message-Id: <20240131102017.1841495-7-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131102017.1841495-1-claudiu.beznea.uj@bp.renesas.com> References: <20240131102017.1841495-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 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