From nobody Thu Apr 2 20:21:22 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 9B29A40B6CA; Thu, 26 Mar 2026 16:00:44 +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=1774540846; cv=none; b=CAFuPYi9psPGXOD+clgpwiJlboypysar4rKEGtHZEJ29J/ZJysmup1bLyj73OHII/rChShbp57O0ZOHUmaY7Cuaxne9WvMZQC+231hWNjlaiNl0uhuxfRORMnHGA74003/4gDhYl8Qs1ZlIx/CqqBog1rtppAEjpQXkPqmjUbn4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774540846; c=relaxed/simple; bh=dqZccj7rSQtZkfWA/kpv1O1mpAjhx+5AqPRyFZOxg3g=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=mAiN8if/SK4Fx8lTJmGdBCZUizKPKLlVhXuiQrDjo3IRbRoMv2cEVc622uTXp2HBAjOQMFBzV58B0+UctZ+Il7cuuFVhfMmBXBgv4WoWfk9lgg0uqZNS7i65Tkwimvk4IC6cPvjgsr3LnOUP3tAgvlXfs0Neg9hCTYEQmzGwG8k= 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=XZYoa4qT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=iLnLvIMs; 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="XZYoa4qT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="iLnLvIMs" Date: Thu, 26 Mar 2026 16:00:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774540842; 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=jlDOt6Kkf7VKyzyBpkSu5qwRtZEagZNXYF7hTlClCcQ=; b=XZYoa4qTCBOvTxMUdOTKa5KsSJ6zSIDK+NDxg9PzNtQsN0MrGIS/kBa5qkE5Fryoh6vQ+O h4YszxID2kI+NtQrKFfMLXTx+1y9qgfWJxlC1/KO5Jy6qpxI2xAIV8+xI8DLZQafhJEAQ9 VWmq4VXL4A7JnruZuRWyG6tBtxA5NNC4Hdq831tF801S3kqIqjKcEEuQxHG38KfGblcKRe cGZJ2zSvx2hm71FNVGp+8ExPAGpWwQHeNfVeK+kHlNpigyzT8kR633Dgb8ZTrBZdaFO7JT muDZeNMPTJqg/cLFNQAINmPEBKvXhmKjnsW5jPpLvBDVWbVCOAnRZwUQc6bcyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774540842; 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=jlDOt6Kkf7VKyzyBpkSu5qwRtZEagZNXYF7hTlClCcQ=; b=iLnLvIMsTV/xsIogWKb5EYIPMKMpmpBqpaUSAcNY8H27XIX86/UhoHd+PMa2f2o/ZlFgSW sWMU4w/+oaITnMDw== From: "tip-bot2 for Biju Das" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/renesas-rzg2l: Drop redundant IRQC_TINT_START check in rzg2l_irqc_alloc() Cc: Biju Das , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260325192451.172562-5-biju.das.jz@bp.renesas.com> References: <20260325192451.172562-5-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177454084157.1647592.39171295790385041.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: 0109d24b4cdc2cdbc127f86cbede83adae2187d7 Gitweb: https://git.kernel.org/tip/0109d24b4cdc2cdbc127f86cbede83ada= e2187d7 Author: Biju Das AuthorDate: Wed, 25 Mar 2026 19:24:19=20 Committer: Thomas Gleixner CommitterDate: Thu, 26 Mar 2026 16:56:21 +01:00 irqchip/renesas-rzg2l: Drop redundant IRQC_TINT_START check in rzg2l_irqc_a= lloc() The check `hwirq < IRQC_TINT_START` in rzg2l_irqc_alloc() is unnecessary as the condition is already guaranteed to be false at that point in the code. The outer `if (hwirq > IRQC_IRQ_COUNT)` block ensures that hwirq is always above IRQC_IRQ_COUNT before reaching this check, and since IRQC_TINT_START <=3D IRQC_IRQ_COUNT, the guard can never trigger. Remove the dead code to simplify the allocation path. Signed-off-by: Biju Das Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260325192451.172562-5-biju.das.jz@bp.renes= as.com --- drivers/irqchip/irq-renesas-rzg2l.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/irqchip/irq-renesas-rzg2l.c b/drivers/irqchip/irq-rene= sas-rzg2l.c index eb01d4c..8587d4c 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -491,9 +491,6 @@ static int rzg2l_irqc_alloc(struct irq_domain *domain, = unsigned int virq, if (hwirq > IRQC_IRQ_COUNT) { tint =3D TINT_EXTRACT_GPIOINT(hwirq); hwirq =3D TINT_EXTRACT_HWIRQ(hwirq); - - if (hwirq < IRQC_TINT_START) - return -EINVAL; } =20 if (hwirq > (IRQC_NUM_IRQ - 1))