Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4841444rwb; Wed, 17 Aug 2022 07:01:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR5lv3Eccv25Ts+AoOrg5V5JsYsVGnNKDmlBQS6jh3s9RBxI9OF70+i8ZTKLp7yij/YfPhuD X-Received: by 2002:a63:fd14:0:b0:41a:20e8:c1e2 with SMTP id d20-20020a63fd14000000b0041a20e8c1e2mr21674811pgh.286.1660744898009; Wed, 17 Aug 2022 07:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660744898; cv=none; d=google.com; s=arc-20160816; b=tTeYYZH/KADeRUgdeg/0mVVHvl4DimJM762jGzpwFtlPMtHmg8ocI2m+1qyY8Tb2sF UxFasVeRnx2UtYDKDqpZp8/f4/aJ9kc2aNwiEq/TeZVbyZzPcxJIAX+5AG+J80eDNH21 nAZt5MjEzalwB5ST7tKk1APosQTVhi3w3EOpX8a88+34mM1BwLAiXVrQyrYGtMgWESQ9 Ws9Y0skLs8hcoAwcQqWxHU0sT/907k04t3beJdbecBBGKOyk+fZGmr5WP9DamDEEhwYU kQ8ZOaSddHypte6iV4s+44ZxReCHVdpfvlXbR+LSvFCaTe63k7s0xXCXwxw0gIQiO83G g2mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=sQzBUASEx2+EKkOm7EcUP1VDvcu+McsHElW3WzhxKug=; b=cJLBVWVQxYMAovZini4Za2pea+pEHRcOEKkuPX9ZZhATwHU2Bnn8xq7Ct5CDrxaYth /mJsqGx7+B8DnQH0nlFCkgeiS+8NIsGbakQzO1YV82Rj6tqswy+zPi6envwk6oxzkaVo CSftbiYkHD4eeyGoUziWdRk2Sv9nQyliwyRXr/JzP9naIGEsWJbXsqJ9nddwYHilhAQm CiaDnkoNHEnMlvblbzVHAPBq7muQLVgNUc3A+iIIIWf92jW+4O6rWi+yDicgF6TNa0Bi Ax01sUEIQRTiQEdoIv4E5hkH/f2a9eZdoP2hLHlwYEGJTcAqN3imaWaKsoyVcUI72Nxb wccg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=coW9sDQz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=vYl4h+kF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d85-20020a621d58000000b0052dd8efe82esi15403028pfd.78.2022.08.17.07.01.22; Wed, 17 Aug 2022 07:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=coW9sDQz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=vYl4h+kF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239184AbiHQNmv (ORCPT + 99 others); Wed, 17 Aug 2022 09:42:51 -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: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 irqchip: Commit-ID: c3e88d91e40971337d4e7b5250e9e17d3e64238c Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/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.st.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-exti.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, irq_domain_set_hwirq_and_chip(dm, virq, hwirq, chip, chip_data); - if (!host_data->drv_data || !host_data->drv_data->desc_irqs) + if (!host_data->drv_data->desc_irqs) return -EINVAL; desc_irq = host_data->drv_data->desc_irqs[hwirq];