Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2417984rbb; Wed, 28 Feb 2024 00:44:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZHw/OJW8sF1dSorcUHbs4yPMubah/U4uBoYuxv6bE+71T7q3/FyDPtYYf3YMybaE6nFwC3OfXbU3vaRhFxB07wKfisL2m95TlfUzViA== X-Google-Smtp-Source: AGHT+IGvUofct6NSZgR9/vuTyzwpx3LCQma3k85kCXDIuOSPU/4115eVUYqt1TdVCEYmvMdH6nFp X-Received: by 2002:a62:f948:0:b0:6e3:caa7:3038 with SMTP id g8-20020a62f948000000b006e3caa73038mr13671388pfm.0.1709109889736; Wed, 28 Feb 2024 00:44:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709109889; cv=pass; d=google.com; s=arc-20160816; b=G3TFCgrt3Al7PgSo2GoOeOqz9Zvoe9a8qQUMkTe/P4DQ5GSMDTr6OQuu27maC6viMt lhbfRPLEhPapL1ULq+ZsePXPAla+TWomBLA3JT0YG+GN3GUv0R9ma/U/OfGqDkgTY743 4sjNVZhKlZRrX/WEet8gSAiuDUaA7yYDx62msqLD/HCVDZRNqwgfHr4C9fWdoAcWQFaM Om2MZKsaqFjhHgBnFt2pjfPxEjPAfz5o61hcnohs4on0rJhFhPW6JI7jcwiqOUY02Wyh DwKZsTL+MK13x/fcH6sB4kfmqL+v+R6NnETon0p8afNQ2euPMYNxNHdD33IRm6MZ6W6M a6Ag== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84682-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d25-20020a631d59000000b005dc6d1551basi6889483pgm.234.2024.02.28.00.44.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84682-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2234AB274D4 for ; Wed, 28 Feb 2024 08:34:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F665374D1; Wed, 28 Feb 2024 08:33:27 +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 ; 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 ; 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 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 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: 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 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); -- 2.39.2