From nobody Wed Apr 8 02:52:01 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EDEF2DF13A; Tue, 10 Mar 2026 17:37:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164259; cv=none; b=iUehibOPPD/UQH3hQ3O1B7pkmNEReMgPSJYswsPuOFSTFif9OfONhGQ3DgniRUCi7jk7kjgF6jgZChpKyDisfwHMFW/fIAKk7KkzqZhbCETm3WFjR8MRsHOSOMm+HJ4C58dIfiak0UmQDVoqwUVY48s/HOsPTAr3uLi1qK6L5HI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773164259; c=relaxed/simple; bh=cRY5CPr4EFvJF7AnjaScXGJX8bPOnlB8gtkrKp0GqE8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=NCxuiBitC4FBUNVQ83pOeB4OWnwq8x2DBA/p0+dVmARt8dYZaT/pO9lMkw3s+OfDQooUdqy7qTV5cS5sv/+Ag0H6Vl3GTzRx/rTDvOI17c9JnpoTxGvvC9TReB/QletqE9hr+qoUIpnm4iMIRu4zFr+n1Ffm8chqgCapyPDzFmo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Wz1m4udw; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Kr9BrUdM; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Wz1m4udw"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Kr9BrUdM" Date: Tue, 10 Mar 2026 17:37:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773164256; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LM1EzIvAfNTNgIVkewzrsCLHLMvMIYXMYNLuiIlztHI=; b=Wz1m4udwulKVOML4w2i6lruwuo7pk6op84B6I0S8glHdHTMkoM+Sv/tand0I1RqkWS74Dh pBXcUSifpzzFD4eIMFZeAlY3NkBrb56E9CsVEC9mNxaCFyyhVpZE1UHqNje3bprkMHcZei 7kBRUWiiCC8F2MUxd8vwbRZI7VBbbuPSgFwedGhUYf3xhyfoDttKtc/6+T5YEcGqGdSK3o F8UgzE98i/1IHu3sOEGGD3CKMG8v8lu8gzbCTTdwK2UBqigmh2YXLjcZLdu51vGHuY62P3 Mq1fSvmTkTjEvF87ghiLRzVZN5trrNO/vi2+WB6fTHEiofRGT61n6Ou9fmtwsA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773164256; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LM1EzIvAfNTNgIVkewzrsCLHLMvMIYXMYNLuiIlztHI=; b=Kr9BrUdMu8gz7p4kzNflQqw/QKhBYf/PA3onQPP0o/D5rEGNMlrnx8tmBsjM37rnzY0Aic eV7sxqZAemHLuIAQ== From: "tip-bot2 for Philipp Hahn" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip: Use IS_ERR_OR_NULL() instead of NULL and IS_ERR() checks Cc: Philipp Hahn , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260310-b4-is_err_or_null-v1-39-bd63b656022d@avm.de> References: <20260310-b4-is_err_or_null-v1-39-bd63b656022d@avm.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177316425472.1647592.13758611704610328788.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/drivers branch of tip: Commit-ID: d50590de0c646332713aa00a8be0012e089028e8 Gitweb: https://git.kernel.org/tip/d50590de0c646332713aa00a8be0012e0= 89028e8 Author: Philipp Hahn AuthorDate: Tue, 10 Mar 2026 12:49:05 +01:00 Committer: Thomas Gleixner CommitterDate: Tue, 10 Mar 2026 18:34:52 +01:00 irqchip: Use IS_ERR_OR_NULL() instead of NULL and IS_ERR() checks Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a open coded NULL pointer check. Change generated with coccinelle. To: Marc Zyngier To: Thomas Gleixner To: Andrew Lunn To: Gregory Clement To: Sebastian Hesselbarth Signed-off-by: Philipp Hahn Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260310-b4-is_err_or_null-v1-39-bd63b656022= d@avm.de --- drivers/irqchip/irq-gic-v3.c | 2 +- drivers/irqchip/irq-mvebu-odmi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 20f13b6..6dc9827 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -2252,7 +2252,7 @@ static int __init gic_of_init(struct device_node *nod= e, struct device_node *pare =20 out_unmap_rdist: for (i =3D 0; i < nr_redist_regions; i++) - if (rdist_regs[i].redist_base && !IS_ERR(rdist_regs[i].redist_base)) + if (!IS_ERR_OR_NULL(rdist_regs[i].redist_base)) iounmap(rdist_regs[i].redist_base); kfree(rdist_regs); out_unmap_dist: diff --git a/drivers/irqchip/irq-mvebu-odmi.c b/drivers/irqchip/irq-mvebu-o= dmi.c index b99ab9d..94e7eda 100644 --- a/drivers/irqchip/irq-mvebu-odmi.c +++ b/drivers/irqchip/irq-mvebu-odmi.c @@ -217,7 +217,7 @@ err_unmap: for (i =3D 0; i < odmis_count; i++) { struct odmi_data *odmi =3D &odmis[i]; =20 - if (odmi->base && !IS_ERR(odmi->base)) + if (!IS_ERR_OR_NULL(odmi->base)) iounmap(odmis[i].base); } bitmap_free(odmis_bm);