Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6240848rwr; Mon, 24 Apr 2023 16:33:43 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXPcOSipray04dgELiuZb8NVHxxqhASDDt4IkCaPfZ5Egq89zw3i/HmPZuGA8PcWHmLQvB X-Received: by 2002:a05:6a20:4296:b0:ef:1457:6cdf with SMTP id o22-20020a056a20429600b000ef14576cdfmr19012384pzj.19.1682379222842; Mon, 24 Apr 2023 16:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682379222; cv=none; d=google.com; s=arc-20160816; b=ilW0NksX3gfJlJjTrKKl8UWN7nJba+Q6zjMwLEKm8LjRF27jR2q85obQYvfevYPB+J a0RfXod7YQp+lhtOK0FE4eEYkRhoMNSbZWHNZBufDqdrOI2VxKW6CF8km/HqEo2Dyll1 Y5NpbCBR0/prH0mUuxChL7st6fnG2NpzHqHA0IoLkdzCEVEyyQDc95aDQWDQ1FDGIlBs RcXprWNH+6DKZEi6onewIKwkIfQ/MO8pQSPg5N/pvo3YXUj3G8tC9rSUrHlECg4HxTJb gb1eojq8kJla4/pkcb/3QUIBGmcGV5uThSaJCY4pilNpw+iO4UlhU+39JSKLMDQtAmed k4fw== 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=qcN5+3GdSclg5aGgmDgFINHjup/KSRgvK3F+hpOdgg0=; b=KHmeIAIgSfgo1k46aNQq9WYsjPXWPL6D3ySjH95KoZPaLYKpRYd8Oc0pJQgtLqbPwk BvYB5woRdtKjIRT8u7tQUvSll/sKPzkXqxmzD+0rIdqx0iff9ahjbs/Zet6oVyRzKpfu tFQqttHYg18x2+AjlMBRKIqe/dB9/OAhtBIkLbrXv8d5H4RK0ELNjZPewsMuHZfpa449 0sCZmlmvmv+8iqu7/iXatOy8KFLhnCHcXLX0XGX86X6QbTmsTALilzsZYUtHbnmtNDA8 1bkL4fjWMpzSVZSE72Ry8hyCZg/gCToMbVytU3juz9lo65Q2na7rC4MMs6G3hdq+ZAso P51w== 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 a21-20020a63e855000000b0050f817c6c82si8242660pgk.232.2023.04.24.16.33.31; Mon, 24 Apr 2023 16:33:42 -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 S232847AbjDXXam (ORCPT + 99 others); Mon, 24 Apr 2023 19:30:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232966AbjDXXaf (ORCPT ); Mon, 24 Apr 2023 19:30:35 -0400 Received: from hust.edu.cn (mail.hust.edu.cn [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D6EA46A9; Mon, 24 Apr 2023 16:30:26 -0700 (PDT) Received: from [IPV6:2408:824e:f25:7460:b092:16d8:698e:4b1a] ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=PLAIN bits=0) by mx1.hust.edu.cn with ESMTP id 33ONTtLx029003-33ONTtM0029003 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 25 Apr 2023 07:29:56 +0800 Message-ID: Date: Tue, 25 Apr 2023 07:29:55 +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: Thinh Nguyen , lihuya Cc: Greg Kroah-Hartman , "hust-os-kernel-patches@googlegroups.com" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20230424105930.49944-1-lihuya@hust.edu.cn> <20230424213339.avocjfchjd2ptaqg@synopsys.com> From: Dongliang Mu In-Reply-To: <20230424213339.avocjfchjd2ptaqg@synopsys.com> 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.1 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 05:33, 'Thinh Nguyen' via HUST OS Kernel Contribution wrote: > On Mon, Apr 24, 2023, 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. >> >> Signed-off-by: lihuya > Is this your full name? Hi Yuhang, Please use your full name: Yuhang Liang. This is essential in the kernel patch submission. Dongliang Mu > >> --- >> drivers/usb/dwc3/drd.c | 5 ----- >> 1 file changed, 5 deletions(-) >> >> diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c >> index 039bf241769a..c2e09700212d 100644 >> --- a/drivers/usb/dwc3/drd.c >> +++ b/drivers/usb/dwc3/drd.c >> @@ -154,11 +154,6 @@ static int dwc3_otg_get_irq(struct dwc3 *dwc) >> goto out; >> >> irq = platform_get_irq(dwc3_pdev, 0); >> - if (irq > 0) >> - goto out; >> - >> - if (!irq) >> - irq = -EINVAL; >> >> out: >> return irq; >> -- >> 2.34.1 >> > FWIW, here's the ack again. > > Acked-by: Thinh Nguyen > > Thanks, > Thinh >