Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4778138rwb; Wed, 17 Aug 2022 06:05:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR76GqdWVH20zmnJiFu+WjIcw7hJYmwcGyF5T2gB5wGA7RALWXHJUlgRJJIOBZjWfjUxSUn0 X-Received: by 2002:a17:903:32d2:b0:172:66e4:ba68 with SMTP id i18-20020a17090332d200b0017266e4ba68mr17367083plr.116.1660741550388; Wed, 17 Aug 2022 06:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660741550; cv=none; d=google.com; s=arc-20160816; b=wpz6HcXFCRzVNPw/yxJRcPFkeOeHmX0gA/CtBDQ7eeY6+UIvlAO0FIVqhZwP2LG5Lb DgYg98I9WYHDxiE1pIDMNAhMlqdHWIRyUHE8GDJeJM7TJIPHeFFfJGjQQAam03fPBE+B fPL89gDyTW4+/qZqbC9cFuZ+TIdxHRbaYC2czY32FysTi6jPQkhXpqByX2EoF45TcOFq hhRHy8MH2gYlxLh9dE3a6Z+JrMKGwHVreV7j6S6hPw6bfmPrwHB2zrWFjlk4WABbV1SL 1v1hgDgJJJPUiMONMoAvTY6NgYP2ZHybpfT9iWm3j/q5y7gRPvpVR6XI2zPyZ+1qIuqT p6pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KNZl0X08yaVQSxf6OQMI9RKfqIUKh/weq3c89Z5IdgY=; b=xA3CfrZZhqbvtP2Z3434Iuqmt3y+j0gzjER7F84XnuroPiVr6ix29nmGZhxJcB4pe2 ikyqhIASwaSXT0HDHzkbaxsluo3Y3WIVRaowE3dTLpSk53SLDg1tL3kfnqcW+sXQpo00 HSnl/BnJAI50L54t5pGwNWdmlrrnFSu1XuSJcZ53ez0EWk9kt5LMsHVJb3hxcUnnOF8o W6wWwfYnu+B5gh1+9Z2kFygnOlIX/omUIgPWnuz1V421g8YZsM8pLTda6iibzn9LsFHI aog5QYv3lU0j4yyDiFSyK2eI0HVKFVFt5Y9Hms4pdkBoNZwlvXqfC2m8lofQKTGxORo9 TOxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=23XUq7dg; 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=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a056a00240700b0052dd9f10a47si17995679pfh.363.2022.08.17.06.05.29; Wed, 17 Aug 2022 06:05:50 -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=@foss.st.com header.s=selector1 header.b=23XUq7dg; 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=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239361AbiHQM7I (ORCPT + 99 others); Wed, 17 Aug 2022 08:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239276AbiHQM7F (ORCPT ); Wed, 17 Aug 2022 08:59:05 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 103D617057 for ; Wed, 17 Aug 2022 05:59:02 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27HCYcdS007849; Wed, 17 Aug 2022 14:58:24 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=KNZl0X08yaVQSxf6OQMI9RKfqIUKh/weq3c89Z5IdgY=; b=23XUq7dghBYzUh+of21349Uk3dkMDdnW6WZrdP1Dr639I2ADKo8lhZ0ZC3qLzTmscP2t UV0uIPPQwh10ZXtjtDhRG+WkuMaBr39UGSWVHNUTzTLPgVycOWLpOrKJfSrLcQv2WmB2 ALhkAcLoZeYWMiFXOzLevPMK5vuPzissS9HBRHaYqLSP1gIMDNLLDR+tjTumNgCwCyKZ QY9BJkDpqqrSAqvqKyZgGJ2IkbHERK6HG7QG4rTYLK8vk9rp+QxYdxsAI/CKwSy92+sQ K5ZWBP03NwCA8jE+weti9dKMTie/kYMRiDPKKzH+RT7U2jX49rrF18HPzeFGB0tLxAYs AA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3hx2uhn37p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Aug 2022 14:58:24 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0872E10002A; Wed, 17 Aug 2022 14:58:23 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 02977231533; Wed, 17 Aug 2022 14:58:23 +0200 (CEST) Received: from localhost (10.75.127.50) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Wed, 17 Aug 2022 14:58:22 +0200 From: Antonio Borneo To: Thomas Gleixner , Marc Zyngier , Maxime Coquelin , Alexandre Torgue , , , CC: Antonio Borneo , Dan Carpenter , kernel test robot Subject: [PATCH] irqchip/stm32-exti: Remove check on always false condition Date: Wed, 17 Aug 2022 14:57:58 +0200 Message-ID: <20220817125758.5975-1-antonio.borneo@foss.st.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <202208131739.gJvcs9ls-lkp@intel.com> References: <202208131739.gJvcs9ls-lkp@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-17_08,2022-08-16_02,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,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 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 --- 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 a73763d475f0..6a3f7498ea8e 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]; base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 -- 2.25.1