Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp203815pxj; Thu, 3 Jun 2021 04:47:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjFdlsB24yZXImP/7lgTYTTaNHl7pEL16Fe8PsIWruB+iQPeVJmciyecyWzwhvA7yR78dP X-Received: by 2002:a17:907:d0c:: with SMTP id gn12mr35866403ejc.149.1622720834764; Thu, 03 Jun 2021 04:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622720834; cv=none; d=google.com; s=arc-20160816; b=gKA/wEP/ao9UprvIEZSMhi75j3IQirlnTzvo6y+fZkU+yNvA+qZahMUf4BJ1H8I2bc i2QE5FruyXR15z09CKWp5cf+UZxcFu/T5f6JfBwnOQhMYZRphBQa1t+//bu6XWwj9Okk urgBGWPsRl5jJ+CaKBo3JYdSFgNpiQHTOde+IUsAN/PghsXzx26N0ktwr6OW9tmmY4Ts xXntbKM8VbQ+e/ZwVyEZgrQkguiQyaMpk0V0rPFeqqma+S2Afj+u0r8I/YEoakeLD2hQ ZblhvnSNVl9CVq63SR27wft2ZQuMDVW6z+viYV/XGEmtNmPAkgMuas6W/Mu6/uLsabKd qMKw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Mb2JJEp/p0JziqgHXLdoKCNAo9dm5FPAxPvW3CtqX1k=; b=sA1z3kLoShUvhOYUsVZYnT1mQOzB3aAB/TARHZ8yKh2UG+3GzqtT+fJjsPA8CbwMVI DiRQ383xYVywvSDflI/IIhmFOSiHIp/R0yxySwObNlKz20cX7rHBvmnyMgJFKRE3xYG/ +4b4a50jZE0npHOG0uqWngmeeLoFEAKZmpoVDrCVQ46jX0USsxvgwaObBa0oxXyakGSm 2egj6TXa4ihzEwZX1tAdDGqH1yANcnk/5g/xD3O82DW13kDcy3KDBT8QWdM5z7KWIMWt zO9FzvE2GW9P6r18WEOZAPK9a1i0gcNXGmxJTDCBaYmsaUBKA6oHaijtvumeExQSw4C9 J3zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lBOy6uhL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si2036525ejy.223.2021.06.03.04.46.51; Thu, 03 Jun 2021 04:47:14 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lBOy6uhL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbhFCLrH (ORCPT + 99 others); Thu, 3 Jun 2021 07:47:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:39322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229736AbhFCLrG (ORCPT ); Thu, 3 Jun 2021 07:47:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18BBD613E3; Thu, 3 Jun 2021 11:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622720708; bh=zyubrDY6PgAJro5tE3EZoArdhuv1Wnp1dBHHVd5rV5Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lBOy6uhLHT5dd8gfGWKdDHeB9iQVObwB5de9/luN/ATpIJ+d6g1Q0ugQMAmN5Afnv 1I+ASzQPBGuhzP4YE85HEp8LwT/5Il+Q8N4F9CsrbPPH1hN1WqxsTKONbfjJuk3GVC PAFhyNeP/IYJqBoLRfM+8yevVrkG+uiL3McW+Oos= Date: Thu, 3 Jun 2021 13:45:05 +0200 From: Greg Kroah-Hartman To: Tong Tiangen Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] usb: isp1760: Fix meaningless check in isp1763_run() Message-ID: References: <20210601100311.70200-1-tongtiangen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210601100311.70200-1-tongtiangen@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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