Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp175317pxj; Thu, 10 Jun 2021 18:35:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8VDUpJliBP6uaAvnRBxQxm1hkgokh7symxDOznuhrFiSsT2bPO0oX/MG1hoQYi18H9Klh X-Received: by 2002:a17:906:fcb5:: with SMTP id qw21mr1118163ejb.57.1623375305708; Thu, 10 Jun 2021 18:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623375305; cv=none; d=google.com; s=arc-20160816; b=GXd/cnXjOrIgRfmUcX3gXTbVLFSdkYzgxmdwo0ZFdaY9jQ7Vn+8Ie1STSXvK88rSNX asys2r8NzQHm1D6nr6q37zfRUgXeMfNw/bOMKmjxPGGdBeWRpeYd8vc2wLo8OSa4naoU br6YqLtOnILmLpD8qiLC1CNvKW1ypU9Ogn6Ih8Ytp5eep7g0tbMjtxqD7H8kmjKt7iFJ 5SlHQg91zP9NatcjaADfvM7j1lemOVhCghkB7PRuDk45uONuTDrEtW50GAEcS1ODrNh7 ThpG+lM+qBwcuBhsFXr8Er5LYfpNfoK9z9QBEPaKCQ/Tse2LRqAeQrN5LzRV6Zt9EY5/ maIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=aCwp/k5+UUlSZRbW282A1AizQnGP2HfW5DOR6J2eTic=; b=sI3Kq0fwvcDTMq5NKt8W94YQCy1mG2RD2gt+CjMYBocDYBfIhFCg3gGSXGDxBQhjhR jjJ2vHkm02LtpOsMUV8qC7G8V3kwO9PaZEFIdC2y/DoqV2Au3Qydvc+XLOWdoG5g4qCF jeh6nyovfH2ubqJvsdju79J3rb+pacZF4+jOh/Lxe2D8rPuHx0GoOv32dtg4YerngaOx tbnMtu5DQGuBvEcG3gEFhEzpbRC8Dr3j2ovm32lHQQbaa7PgxHTpRTHzq1ltfAC5up/a 71lVbJXhWPr/ITfw1BI4dy/hr3vRQoynvpi83S4qMbRJD16YEpS5b+RoNo/StmpGysJ8 a2Xg== 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 f2si3342597edu.428.2021.06.10.18.34.42; Thu, 10 Jun 2021 18:35:05 -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 S231186AbhFKBeW (ORCPT + 99 others); Thu, 10 Jun 2021 21:34:22 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:5379 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbhFKBeV (ORCPT ); Thu, 10 Jun 2021 21:34:21 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G1NXD2bRnz6wTg; Fri, 11 Jun 2021 09:28:28 +0800 (CST) Received: from dggpemm000001.china.huawei.com (7.185.36.245) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 11 Jun 2021 09:32:16 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) 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, 11 Jun 2021 09:32:15 +0800 From: Tong Tiangen To: Rui Miguel Silva , Greg Kroah-Hartman CC: , , Tong Tiangen Subject: [PATCH -next v2] usb: isp1760: Fix meaningless check in isp1763_run() Date: Fri, 11 Jun 2021 09:40:55 +0800 Message-ID: <20210611014055.68551-1-tongtiangen@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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 Remove attribution to retval before check, which make it completely meaningless, and does't check what it was supposed: the return value of the timed function to set up configuration flag. Fixes: 60d789f3bfbb ("usb: isp1760: add support for isp1763") Signed-off-by: Tong Tiangen Tested-by: Rui Miguel Silva Reviewed-by: Rui Miguel Silva --- 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