Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6699366rwr; Tue, 25 Apr 2023 02:18:19 -0700 (PDT) X-Google-Smtp-Source: AKy350ZA2/CZ5ISSbDLHzmiGhae4/XKSL7zg7DXcvhN0CL9RVi633KdLv6rHV/VHBVR7huALywJz X-Received: by 2002:a17:90b:3507:b0:246:abe4:cb0 with SMTP id ls7-20020a17090b350700b00246abe40cb0mr17058322pjb.10.1682414299532; Tue, 25 Apr 2023 02:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682414299; cv=none; d=google.com; s=arc-20160816; b=kmM22lPgr0VviUriBVujKhww7CPMmXFF1eTZe9ZuAHKAZxWcTxxVzJ8O87cnKBb9Wm DG/Zo+J07jxGaL4S5P9XAgAB1MVeWUvm91FaxLk269aCXa1C1Z9lLbOC5c+lEbj9iA5W TiLFcEJqjPMEInZUKGPwxNE/aB4hF8Er2bNqfSFooFCBu9jwvb1QIdP3612+EMF05DLP g/vjsiRDeVx21fsySF3Mwjlxu8FLYx24am5enUuh6Ctcpsr2z7NEaEkGucv71fw3YJq4 8rboQ8JRVMeiV3mqvegoF2ZOE9Rb950hYzdx/5crxvET8gJfGj5ZdJ7fU0ZsorJABf14 wKzA== 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=bFH9tNQoYSwWNslBNCbsyVGaWtriBhF8PEqJBbI75zE=; b=nHUvPeaXIHlEeoatRJ3knTAB2+blv3CPjWY1x9NjNvQYhk0mnYwamrRD/Zoe3Q4pdk YHJhR5JQuvjxiHdOAGEfSUIFFoga3jZEPOGMXLg8VZ5YKu576Uh2xSIA+IsiRWsGqDhz m37GIOEPdmykX8JNDcEhcT8nrEMsbDBEF26KRwYWe2//+XSfwDqtth0zbbz5W57DVF7l 6+8RmPIwA2kINY6T4PMRe/ww3ejY9VWgNleKuBJLvGSQe/7OLuR1DPry/wdx2xqq0BsC k7dX6KdiH1R4xK3tb1NvL+ZbFOEODjAOmFQkPwIKdzJLi5VjYwitEkrceRw5OxZlh8WV dqxg== 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 mq11-20020a17090b380b00b002475bc0a186si16903066pjb.69.2023.04.25.02.18.08; Tue, 25 Apr 2023 02:18:19 -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 S233322AbjDYJKt (ORCPT + 99 others); Tue, 25 Apr 2023 05:10:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232430AbjDYJKs (ORCPT ); Tue, 25 Apr 2023 05:10:48 -0400 Received: from hust.edu.cn (unknown [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A36E010CE; Tue, 25 Apr 2023 02:10:47 -0700 (PDT) Received: from [IPV6:2001:250:4000:5113:b4e1:4fd9:48ca:cb80] ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=PLAIN bits=0) by mx1.hust.edu.cn with ESMTP id 33P9AEMM009718-33P9AEMN009718 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 25 Apr 2023 17:10:14 +0800 Message-ID: <559cf3a3-f740-89d3-9e63-d0016d767a8a@hust.edu.cn> Date: Tue, 25 Apr 2023 17:10:14 +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 RESEND] usb: dwc3: remove dead code in dwc3_otg_get_irq To: Sergey Shtylyov , lihuya , Thinh Nguyen , Greg Kroah-Hartman Cc: hust-os-kernel-patches@googlegroups.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230424105930.49944-1-lihuya@hust.edu.cn> <887b6226-ea4f-e75c-bfde-0785ccf30c77@omp.ru> From: Dongliang Mu In-Reply-To: <887b6226-ea4f-e75c-bfde-0785ccf30c77@omp.ru> 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/25 16:57, Sergey Shtylyov wrote: > Hello! > > On 4/24/23 1:59 PM, lihuya wrote: > >> platform_get_irq() only return non-zero irq number on success, or >> negative error number on failure. >> >> There is no need to check the return value of platform_get_irq() >> to determine the return value of dwc3_otg_get_irq(), removing >> them to solve this problem. > I was going to submit such patch myself at some point... which > has never happened. :-/ > >> Signed-off-by: lihuya > Reviewed-by: Sergey Shtylyov Hi Sergey, Please take a look at the following thread [1]. Yuhang sent a v2 patch since he did not use his real name in the Signed-off-by. Greg already had some comments on this patch. [1] https://lore.kernel.org/lkml/20230425015532.13622-1-lihuya@hust.edu.cn/ > > [...] > > MBR, Sergey >