Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6588489rwn; Tue, 13 Sep 2022 06:29:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR6zUCesTdrGmgA6QL0XeJwUy895ri6i85by/2JNl2su/xlbimOX/FLBzziEE1yHxpyXEEoT X-Received: by 2002:a17:902:f70a:b0:173:36e4:eddf with SMTP id h10-20020a170902f70a00b0017336e4eddfmr31529208plo.9.1663075744644; Tue, 13 Sep 2022 06:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663075744; cv=none; d=google.com; s=arc-20160816; b=s63gEWGzw9IVQl0fBKIm+nZoTs7mySXZb9exU4gTfXEZf+HOALTI6oYn5U0ubM//Yr rJJ+nVQ6s2atE3g8m+pp8uicEfsgbfvGOQImcSZcf2VnHuMg2eqK7eVxAZXFu5NxBcui epLFO31JAlDW/T9Zr1m41S/jB0KEnilzUdGUxmarkb6BD+UT78wjqq35+zf+yB8xSwlL fXN9f+6lQdLXbrU4/6qY78MDyrvwtUMiRQ5+6BXY4CarydaeaX+4bNHXTbQDv3973vHe eC4gnFFsCmDNfkZZcc2euK1m7kuvzRRx4PtF+GwZEqH1HamGpkt4nuKdz9ZPArOJdsav yF8w== 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=gODvVEUHGIXkZJ4/TvKgVkj5nCjnj3KeHlYUmWGpcFQ=; b=EMr0bUABCoWro5+s+iUctBuCYalWAUuFJBaAoihXFQ0SftsAbhmdTAfhCey4il9jcb GEYP5KdFIAZzHnL1Z7vXnBzV8FV3k17TxiEWVxAA2h6KXfpolwqRYzPbKdXT0UVKRYuy vALg9dbaSV1xWzNH3ev8wptz6+MEtyfPJyIpA5viuTqNY7k/8NbMVBwjJUra4eU8SZnd LfmnBs0Vt11dy//Kn+PZCbm8M5dX8UN37dLEz1qyspf83Dw8eb3kTOAkK33Q4Ks2zG7a 3ALoAFNyWDOJ7/3uRgnp4uldsmNj17DfIIcyVTCP7/qMuGcP5jmgNUh5TW2K1c3SYgaE fz7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LDUofbcd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 n37-20020a635c65000000b004305c4aa3b2si12372732pgm.496.2022.09.13.06.28.52; Tue, 13 Sep 2022 06:29:04 -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=LDUofbcd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231154AbiIMMxf (ORCPT + 99 others); Tue, 13 Sep 2022 08:53:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231443AbiIMMxW (ORCPT ); Tue, 13 Sep 2022 08:53:22 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 920924D83C for ; Tue, 13 Sep 2022 05:53:20 -0700 (PDT) Date: Tue, 13 Sep 2022 12:53:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1663073598; 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=gODvVEUHGIXkZJ4/TvKgVkj5nCjnj3KeHlYUmWGpcFQ=; b=LDUofbcdfgN560TK70YReCYg3bmC43QfGG86d8H/KlSyNIQofZMewaW58/5+RewrLNpM86 L+yGiUwh4PamRYREWgFnec1PwOh8MO41DmDK6Vb7LwDW8k8R4fPwBTFKoBkOgfj83L7PXL OwYimV0Y81maq1ap/5Gj/bPQgdoxRkwHT3uEyskvLkLIh4VLSYluTL/32CxznCeKChkYaC Hp3kT8XF2Q/sKgN6jH2d5EATOa+BUG5jIDrfZempkEM60ClqUFLwJkg+hnxyReQ20Y+xR2 4F3DC0agA6hpCjfjPOqvM4PQTMzdLUKw02TIMu52LGUWUAH32BC08gI18HjKsQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1663073598; 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=gODvVEUHGIXkZJ4/TvKgVkj5nCjnj3KeHlYUmWGpcFQ=; b=VTKgqw5wgMmOmBeFnn61nM7SeKJI5eNSxSxvMBOdx6es09wf79CVPSpZMsIMKaIWu29boy WIbkhEP4TxJkCnBg== 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: <166307359696.401.1638589625214166673.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 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: 8fc7a6198a80bc39b6c5b3cc1a578e7d24f068a2 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/8fc7a6198a80bc39b6c5b3cc1a578e7d24f068a2 Author: Antonio Borneo AuthorDate: Wed, 17 Aug 2022 14:57:58 +02:00 Committer: Marc Zyngier CommitterDate: Mon, 12 Sep 2022 16:31:25 +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];