Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp741922pxj; Thu, 3 Jun 2021 19:11:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqL+uH2wFH2qjoGPgGp0mlnqyb4OGMxI+oIPJPN0kwcIrnrGRzACERDm9gOYQPB6DRXDp/ X-Received: by 2002:a17:906:488a:: with SMTP id v10mr1875176ejq.383.1622772681984; Thu, 03 Jun 2021 19:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622772681; cv=none; d=google.com; s=arc-20160816; b=Asihcg7jSe5wsS6ZYZttRFyjsx+qRG0Cg4JZNoCZ/L1mzwi8/kUEc7wqn5hsnfDuwc RmyxvJSaNZqCJzWYbioJSHdM67l5TErXQm4u8H4a+8RFPQRNXlKQq+FGR7PIFLG3v/yL EO80JnBAfURHlBpZQA1tDAMcgtPmhxoOuq0PtqpJ/BdwfgaMhFBiobHobbhSrZaMibJJ QemLuDgfKJ406QPjSlHa/BI17sxZGwgBT4RW17iPOxf+vI6NF4j5C5gHfpvsEfHRb7yZ 1Gsjw7clGJxWeaRL4M9WoyhnAQ5osLCxj5UZSxxOZ2IQ75fOhbXLR7zO5aCC+ThE6wqx Bouw== 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 :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Rm4/CoTesK8oJd1+y8jxY+OEtbHAz0Ki+TOxkl83ubE=; b=n2sX7bv77GdVj+De1Cn89d3onCiKzwGpJI0/YUZ3348T4+1e/1CQXOER4nI5EcxHbf ZLkwv2JJ/l1ijR83F1/OwZvYKyyFV0dmvy0CeQQlfsn6hpSXt8GMN6uImIFnbXOo+sXf hLxMG/5EoyjB48USt6lpH1+ZUmik6nPuPuA92PfTjqjAJBXN2RnoJvU9GHOOiSlfHB8X K/Z8Y9JrARivOMpbiFVvu1UfgpD9XqF8/fpgRy6/jWkliwE1Z6KmcYMBnQB0/fMlNrAu 7/sqNsbZioxX8QXlUhHKIQA8wVOH3zcJS6UcMpmS5ESgk6wd3tOGoYMhQRe3jvDIr9Gt ZOkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc23si3178929ejc.25.2021.06.03.19.10.58; Thu, 03 Jun 2021 19:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbhFDCL2 (ORCPT + 99 others); Thu, 3 Jun 2021 22:11:28 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:4299 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbhFDCL1 (ORCPT ); Thu, 3 Jun 2021 22:11:27 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Fx5gW1Bstz1BH0P; Fri, 4 Jun 2021 10:04:55 +0800 (CST) Received: from dggpemm000001.china.huawei.com (7.185.36.245) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 4 Jun 2021 10:09:40 +0800 Received: from [10.174.178.95] (10.174.178.95) by dggpemm000001.china.huawei.com (7.185.36.245) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 4 Jun 2021 10:09:39 +0800 Subject: Re: [PATCH -next] usb: isp1760: Fix meaningless check in isp1763_run() To: Greg Kroah-Hartman , References: <20210601100311.70200-1-tongtiangen@huawei.com> CC: , From: tongtiangen Message-ID: Date: Fri, 4 Jun 2021 10:09:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.95] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm000001.china.huawei.com (7.185.36.245) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/6/3 19:45, Greg Kroah-Hartman wrote: > On Tue, Jun 01, 2021 at 06:03:11PM +0800, Tong Tiangen wrote: >> There's a meaningless check in isp1763_run. According to the >> similar implement in isp1760_run, the proper check should remove >> retval = 0; >> >> Fixes: 60d789f3bfbb ("usb: isp1760: add support for isp1763") >> Signed-off-by: Tong Tiangen >> --- >> drivers/usb/isp1760/isp1760-hcd.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c >> index 016a54ea76f4..27168b4a4ef2 100644 >> --- a/drivers/usb/isp1760/isp1760-hcd.c >> +++ b/drivers/usb/isp1760/isp1760-hcd.c >> @@ -1648,7 +1648,6 @@ static int isp1763_run(struct usb_hcd *hcd) >> down_write(&ehci_cf_port_reset_rwsem); >> retval = isp1760_hcd_set_and_wait(hcd, FLAG_CF, 250 * 1000); >> up_write(&ehci_cf_port_reset_rwsem); >> - retval = 0; >> if (retval) >> return retval; >> >> -- >> 2.18.0.huawei.25 >> > Did you test this change to verify that the driver still works properly? > You are now checking something that never was checked before... > > thanks, > > greg k-h > . Sorry, this fix was not send to Rui. From the point of view of code logic, there should be a problem here. I don't have the actual hardware to verify whether it works properly. Rui may know if the patch affects the original workflow. thanks . >