From nobody Sat Apr 11 00:44:26 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85E79C25B08 for ; Wed, 17 Aug 2022 13:42:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239213AbiHQNmw (ORCPT ); Wed, 17 Aug 2022 09:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232671AbiHQNms (ORCPT ); Wed, 17 Aug 2022 09:42:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACA0B89821 for ; Wed, 17 Aug 2022 06:42:46 -0700 (PDT) Date: Wed, 17 Aug 2022 13:42:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1660743763; 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=sQzBUASEx2+EKkOm7EcUP1VDvcu+McsHElW3WzhxKug=; b=coW9sDQz+uGNhLGxCkfCKWIeB7sImho9tIk4f1notYU7jTv+F7gOqatMqJOsZNfhEsJpHN b366EGF0X3Kx362H7237YmOx3wmJjqrNuowsViCT7kEuAE8KvjLQGJ/60+bdgZdjSKq5WS HjnTtDmEEQAi7gamvogOMYmV0K+PMqWDCk16H2xWVMOO6j1LfaBlJI/XkbANfd7dYxvGbj G98E5/cFWXaGQlz3CzV0G4D7L2A9hWoOjqnvN1jk+JJzho/ZVws1do8fkWIo+qgVCoL5Dg GPS1ScLS/15GHp0AsT6+0ZSSBiM5Gn193rK4UYbv/FcYg+5efBinKsaWWQ8maQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1660743763; 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=sQzBUASEx2+EKkOm7EcUP1VDvcu+McsHElW3WzhxKug=; b=vYl4h+kFPfBBO3EcE2njZwfygVR2xQ8hivKMpSZbj7fVt2IDvMvPFI/h+D9peus1UhVArv mv0m2Pm9BfU3i5AA== From: "irqchip-bot for Antonio Borneo" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-fixes] irqchip/stm32-exti: Remove check on always false condition Cc: kernel test robot , Dan Carpenter , Antonio Borneo , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20220817125758.5975-1-antonio.borneo@foss.st.com> References: <20220817125758.5975-1-antonio.borneo@foss.st.com> MIME-Version: 1.0 Message-ID: <166074376204.401.16260448177061884306.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-fixes branch of i= rqchip: Commit-ID: c3e88d91e40971337d4e7b5250e9e17d3e64238c Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-plat= forms/c3e88d91e40971337d4e7b5250e9e17d3e64238c Author: Antonio Borneo AuthorDate: Wed, 17 Aug 2022 14:57:58 +02:00 Committer: Marc Zyngier CommitterDate: Wed, 17 Aug 2022 14:19:48 +01:00 irqchip/stm32-exti: Remove check on always false condition The field drv_data is assigned during driver's probe, where it's already checked to be not NULL. Remove the always false check '!host_data->drv_data'. This fixes a warning "variable dereferenced before check" detected by '0-DAY CI Kernel Test Service'. Fixes: c297493336b7 ("irqchip/stm32-exti: Simplify irq description table") Reported-by: kernel test robot Reported-by: Dan Carpenter Link: https://lore.kernel.org/lkml/202208131739.gJvcs9ls-lkp@intel.com/ Signed-off-by: Antonio Borneo Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220817125758.5975-1-antonio.borneo@foss.s= t.com --- drivers/irqchip/irq-stm32-exti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-e= xti.c index a73763d..6a3f749 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -716,7 +716,7 @@ static int stm32_exti_h_domain_alloc(struct irq_domain = *dm, =20 irq_domain_set_hwirq_and_chip(dm, virq, hwirq, chip, chip_data); =20 - if (!host_data->drv_data || !host_data->drv_data->desc_irqs) + if (!host_data->drv_data->desc_irqs) return -EINVAL; =20 desc_irq =3D host_data->drv_data->desc_irqs[hwirq];