Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp936003rwr; Wed, 26 Apr 2023 08:08:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZVfmvUcFD7W6dnAEbrsGgKDO3vwWKAp/toWfp1p7XFv7Jdklx5z5UsVwtu4BqrHkP4IOab X-Received: by 2002:a17:903:120d:b0:1a6:9289:6b with SMTP id l13-20020a170903120d00b001a69289006bmr25378537plh.30.1682521727315; Wed, 26 Apr 2023 08:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682521727; cv=none; d=google.com; s=arc-20160816; b=pc+RPbtslJTXzG9dGay3hE9n+5Y88Flcwpe5IVsW6vNTbrd5QVbSxxFJBzYw0Dhpk+ v45c13C7VylBTQDpZHajoL5gC/xCgryY2ufbhF84U3gT2JiLKdCNzxwT70vs7g6DuBb0 dNXO3zYOWfHnG9eibv2I9r4AaeQq40bZh+2QCImwxP55TDcwlrgQ7xPZcrlf5kqWDFUs KFqptzg8KCNd9e/cSdrlQ4ukiHDvbqXwU0/CYcS4elEmmm+TyGwhyx6mo8gTnlxAVA30 kUZ1gFzhKt4VIq1Oc8piiP7DiqRIqmaMMK81IDNaofVFF4DpmG+g5BVG4Lk3FktcvWv8 4y5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=eTm2Sqslxh4Aqxv4NxqK57FTDpsJsX2W4cdki2PaJG8=; b=qvrSnmZOUKCLouW4bHr7rir1OibafIVe4rSw95MW9ifBBLHAwLsKWuv5yuoM6U0Mju w/qJWhZd63bDFp2y4BmHVognXH5I+zAdv5TXTf344umfJw5TqZzoKQMT+N1xpCS/uk72 6SX0WKgBimlGOADXfcLesYd175XG96pySlHlIthlZM6/wCjM85oWkUrXqdL/r8ay6Il9 JMGiXetj2/zBO+9x7e4NCmmS7BPxJ3NQ+XfZd6X6xsoTGjTIzo2zuu0Hpx0hGxsJcQa7 nOnNWGqisPfwFhWWO2eEPGK2jFNT/fXuTVmDEgkGAJfjkcMH8CPqMPRMlJmnLp3MTlSa U4YA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a17090aba8100b0023670bc014dsi19152747pjr.110.2023.04.26.08.08.32; Wed, 26 Apr 2023 08:08:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241122AbjDZPIT (ORCPT + 99 others); Wed, 26 Apr 2023 11:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240754AbjDZPIQ (ORCPT ); Wed, 26 Apr 2023 11:08:16 -0400 Received: from hust.edu.cn (mail.hust.edu.cn [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37221618E; Wed, 26 Apr 2023 08:07:58 -0700 (PDT) Received: from [IPV6:2408:824e:f25:7460:99d6:1295:58e5:1589] ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=PLAIN bits=0) by mx1.hust.edu.cn with ESMTP id 33QF7CbZ012118-33QF7Cba012118 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 26 Apr 2023 23:07:12 +0800 Message-ID: <4cdd1cd2-bf9a-ed55-946d-48f917f72342@hust.edu.cn> Date: Wed, 26 Apr 2023 23:07:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] spi: davinci: Remove dead code in `davinci_spi_probe()` To: Mark Brown Cc: Li Ningke , hust-os-kernel-patches@googlegroups.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Carpenter References: <20230423032446.34347-1-lnk_01@hust.edu.cn> <46299274-d827-279f-cadf-020e93296c13@hust.edu.cn> <1488abfa-9a0e-970b-e074-11842a6c6413@hust.edu.cn> From: Dongliang Mu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-FEAS-AUTH-USER: dzm91@hust.edu.cn X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,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 On 2023/4/26 22:13, Mark Brown wrote: > On Wed, Apr 26, 2023 at 09:50:26AM +0800, Dongliang Mu wrote: > >> Second, from code review of platform_get_irq / platform_get_irq_optional, it >> would warn IRQ 0 as an invalid IRQ number. >> out: >> if (WARN(!ret, "0 is an invalid IRQ number\n")) >> return -EINVAL; >> return ret; > Like I say I'm not sure that's actually accurate for all architectures > yet. I see. Let's wait and see. When it becomes stable and universal for all architectures, we could clean up them all together. Currently our team just works to make Smatch happy :)