Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5402231rwr; Mon, 24 Apr 2023 03:47:11 -0700 (PDT) X-Google-Smtp-Source: AKy350ZbMoQaVbSdbA5uoiH9MEen+SfIPzHVks3J6wE02/T+jsUDNQntlrUF7i+8+YF6mNySNfLt X-Received: by 2002:a05:6a21:6d9b:b0:f3:5cf7:581b with SMTP id wl27-20020a056a216d9b00b000f35cf7581bmr6574495pzb.28.1682333231495; Mon, 24 Apr 2023 03:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682333231; cv=none; d=google.com; s=arc-20160816; b=sWoTgMI+SxjW4lEJgR7ZS5+zRZo3lKaiMveqmCQBxLy70NnyPfjlzruuEV2nM23MLv rZ5iT3+UUcRux8/UYRbUVRrO1VmwzthScgGfnnO2qvzqU2PE1XJ7lzFUB98btOAXcqK5 05rLuNwfVc956ss+7LHWXfws0CNovSDlY6u1ULkDsueHjbID1ECfUULxcmErYg1r4qqo mZu40pPMc/yWVTdzZS8KR41hrhdtox3W4Vi9P8fID0gXae0VladpgT8OwFmiuhxSi/q6 JjChYIE81fhtkCaH6B+mSKtjozHC8s0I06edxsrFjzF7NwdABSbtZwyZeZOm8W8G1+Do uS+w== 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=G8hTzRrjSl0j95Z1HD81F8zDzCCeDgWK2Ptm0yfLyW0=; b=Gd59HmHEQuW4BLChJOxuVNjPGqi11nsnl9mKbklJPDy2DaxtZTxF10qqPFNX/kyUbt c2IHSbli/wIq6RncpkzF7gxygw2camxzljoz9J+N0rAI8HKZHLry/xH+1qrgexwwKyZb EUoMtlxU2Uk3gM+zIzPhnOWWXhyLcTf/nMwr+7cKhh99qhSsRbCpC8NiveHsRW7BQ0qD HDaawbVsBl1EONN4/KpdgPoQW18tz0ueNaTVWEnOGgnR+n/XPBVt7z5T58RN/jTe0YsP JqZGzbufuwRc0gwEcYmWknuQAcERAza326ix0iLnQGcMuExIO0thjNk3rT/mwOjk8p2f 8MOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qHxdlKTG; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i62-20020a625441000000b0063b8685bab8si10822749pfb.229.2023.04.24.03.46.56; Mon, 24 Apr 2023 03:47:11 -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=@linuxfoundation.org header.s=korg header.b=qHxdlKTG; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231237AbjDXKgu (ORCPT + 99 others); Mon, 24 Apr 2023 06:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbjDXKgV (ORCPT ); Mon, 24 Apr 2023 06:36:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 894D1358C; Mon, 24 Apr 2023 03:36:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 16A8B62039; Mon, 24 Apr 2023 10:36:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27A91C433D2; Mon, 24 Apr 2023 10:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1682332565; bh=/Af+Rd/o2c2r2mMbmyISnDuiLQcI1v2nbaVFsmdZWSE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qHxdlKTGOlPp9TgI+6vXg4eGrhIhkI2T7k5lGwru1WJz2RZdb3hBn6m2lTeB/dUt4 VvVZXaPoThozJVpEEnWsWJezwXC9fEY0Q9qD+4KRgjbSOyDkmHaBix9RX0zaDsXsAe 5X62UAQmJNM3YXav3JFpCgXW00wLyQZJlOQCVPyU= Date: Mon, 24 Apr 2023 12:36:02 +0200 From: greg kroah-hartman To: =?utf-8?B?5qKB5a6H6Iiq?= Cc: thinh nguyen , "dzm91@hust.edu.cn" , hust-os-kernel-patches@googlegroups.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH] usb: dwc3: remove dead code in dwc3_otg_get_irq Message-ID: <2023042437-bovine-brunette-c067@gregkh> References: <20230323053946.53094-1-lihuya@hust.edu.cn> <20230324182853.rbguxi2lng2mhm3s@synopsys.com> <4d6dd98f.41e10.187b27043ca.Coremail.lihuya@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4d6dd98f.41e10.187b27043ca.Coremail.lihuya@hust.edu.cn> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Mon, Apr 24, 2023 at 04:45:14PM +0800, 梁宇航 wrote: > > -----Original Messages----- > > From: "Thinh Nguyen" > > Sent Time: 2023-03-25 02:28:56 (Saturday) > > To: lihuya > > Cc: "Thinh Nguyen" , "Greg Kroah-Hartman" , "dzm91@hust.edu.cn" , "hust-os-kernel-patches@googlegroups.com" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" > > Subject: Re: [PATCH] usb: dwc3: remove dead code in dwc3_otg_get_irq > > > > On Thu, Mar 23, 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 > > > --- > > > 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 > > > > > > > Acked-by: Thinh Nguyen > > > > Thanks, > > Thinh > > Hi Thinh, > > I'm checking in about my patch submission for usb dwc3 that was > "ack'ed" on 3/25, but hasn't been merged into the subtree yet. > Could you please provide me with an update on its status and let > me know if there are any issues or concerns that need to be addressed? It's not in my queue anywhere, so it needs to be resent if anyone wants this applied. thanks, greg k-h