Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp908344rdh; Thu, 26 Oct 2023 21:38:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGL+5JHUqlmVNVY+jzAG9E3QO/9QTTNa0ipoKUNOaqrxMeJFYctrCghLwoUmZFK7WHPDjpi X-Received: by 2002:a05:620a:459f:b0:772:64cb:bc64 with SMTP id bp31-20020a05620a459f00b0077264cbbc64mr1504128qkb.12.1698381531915; Thu, 26 Oct 2023 21:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698381531; cv=none; d=google.com; s=arc-20160816; b=E4eHIhTBMSysEPPQerYZSpiTd1jc8IAIadrG1gMANbs2Iwg1UEya8/8Fybgy3gXpeA FxADZ3o6ZZtu1+j0z9ROtqSbnpIh3+irDDlGMS+jwekYz86RVQpxEYTG744ArpUacw+C fDuhGGwRMdNz3k+sCioQHdGlvBZr6SFufJn4famTWmuJpF/KOtV7ngJAnM+s7RDWgdF1 fcFIIkIh1Q/r228nVYhFM5HhDFeGbGzvupdVtPLPwRaCwgrFVmh2bXAORHQPv2En7ias ZTlUtkmPQWYHt80Mir0yiAlw2cfDhhLaYcqQhQPM2BPdmg0Xg4D55hnlI3ewjqScEhyS JDmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=frH4yJkEgXqgTfgCib1fGkByILTuSnogO/76sANZ2P8=; fh=+b19gRDcfMfw8mM/dikbigGRhi8d9ACPDkhEQdIPb5k=; b=kkU7dFovC3OSSNG5bI5VilP6k3iIuKmVrbVqE8yyHXPOYPIKgO1AVrs77fx6jqxbai 1qxbvrhuRu3ghbqLd4ZVbDxWCHf+8fG1E46gUSxAr7TYwjvsj2DbTcwaBUYWyDnRMb1J 6l7d3Prpf/ckFiMxhGl4R27YAcVSD0vBXOWZ/V/EOFVhURsiUeFMZdXk5qlS/zH2mOrI WoJmkLql9pZXqcLEzi7q/tkcORWdm5+rmv5R2ixuL3b/N74CR0EY4xq73kc0ovPxnI7K 4hyhDEDmDbi4UTscBAhx/rVJ8/LB95Vc1r9TA9Z+X5F52buRZLDFsoraIiVVmyhQAGfp /0UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k13Y7N4O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id p3-20020a258e03000000b00d9a6667f4cfsi1427119ybl.311.2023.10.26.21.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 21:38:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k13Y7N4O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5BC5682D1ABA; Thu, 26 Oct 2023 21:38:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232306AbjJ0Eid (ORCPT + 99 others); Fri, 27 Oct 2023 00:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjJ0Eic (ORCPT ); Fri, 27 Oct 2023 00:38:32 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE801BF for ; Thu, 26 Oct 2023 21:38:29 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so259014666b.3 for ; Thu, 26 Oct 2023 21:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698381508; x=1698986308; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=frH4yJkEgXqgTfgCib1fGkByILTuSnogO/76sANZ2P8=; b=k13Y7N4OvbzEuf5AQB1U4YvwaEky/UTiPMGzqGF5LUSWVZz7ANdWoSYDLeAHv73T7G nLwTAqO7DbK4MBS4BF7wAJG29teNRwhGHip+2O6zuO0S90YgrgSNZ0E1KHHRPNTHk1mY IGqHeXzBYmT4DsO7twVCaJtx0bjgdpPMkSxLQ19QSuHXggjhoBGEHzlIEE4BCAL8KX2t pMtPfhOEjk1JzKdLwSWWv0k0gjuybdknM+tdP4o3ZcwSmVK/iZPIwp25CsUADMIkE1UQ Eg9jPRaL+L9DPGa8ppgEXe1iQjYYzQdN+4txf21931FkFERzYbT7JFK5sMbGKz1ypwWE LLUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698381508; x=1698986308; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=frH4yJkEgXqgTfgCib1fGkByILTuSnogO/76sANZ2P8=; b=RhLz26nblC924edRTWEpeThJMfj99pdTbAd7v98KdyYEyN0oJxqZTKvp3wZNHSwoX7 hjrVcRu10MrWmTw2oESQ+oOVz08yQ2rxzsekkgMjVggvXsfYUFYhutvv60QuExehUdJX MrkQXAB4Ylsm88Ln8Lb/BDOgGCfTmyAu8VVDdgLAWudM/irhCRTEMQIX6qb3KWnZuR3O lpXGFJr3aH67YLpCI9aArL8YJJjdiDkpWfO6FDOW/HNBiJKHTAW9fihwlvBqi+0ge2yx XFPCbk/sqyKqhfqmMI+FZDBgl4q4nhAwFNSXuGI51XhqLzTckw912ptYbcIiTPtazPfl lzYg== X-Gm-Message-State: AOJu0Yy687Vuy6jzyxzgK7C7Ll71S0QFW9MWHRSpccUMOzgPnKDCCfLs ckwC91pTSHgRduiRkBf3oZRtdQ== X-Received: by 2002:a17:907:7baa:b0:9be:705:d7d0 with SMTP id ne42-20020a1709077baa00b009be0705d7d0mr1427154ejc.0.1698381507653; Thu, 26 Oct 2023 21:38:27 -0700 (PDT) Received: from localhost (h3221.n1.ips.mtn.co.ug. [41.210.178.33]) by smtp.gmail.com with ESMTPSA id lf19-20020a170906ae5300b009ad89697c86sm556618ejb.144.2023.10.26.21.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 21:38:27 -0700 (PDT) Date: Fri, 27 Oct 2023 07:38:19 +0300 From: Dan Carpenter To: Su Hui Cc: joel@jms.id.au, andrew@codeconstruct.com.au, robh@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, roblip@gmail.com, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] soc: aspeed: lpc: Fix impossible judgment condition Message-ID: References: <20231027020703.1231875-1-suhui@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231027020703.1231875-1-suhui@nfschina.com> X-Spam-Status: No, score=4.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 26 Oct 2023 21:38:49 -0700 (PDT) On Fri, Oct 27, 2023 at 10:07:04AM +0800, Su Hui wrote: > smatch error: > drivers/soc/aspeed/aspeed-lpc-snoop.c:169 > aspeed_lpc_snoop_config_irq() warn: platform_get_irq() does not return zero > > platform_get_irq() return non-zero IRQ number or negative error code, > change '!lpc_snoop->irq' to 'lpc_snoop->irq < 0' to fix this. > > Fixes: 9f4f9ae81d0a ("drivers/misc: add Aspeed LPC snoop driver") > Signed-off-by: Su Hui Reviewed-by: Dan Carpenter regards, dan carpenter