Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp155044pxy; Thu, 6 May 2021 23:32:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZh3flltxdfVSlHtE9boB7m18PXjfFMhytLIcfgBPyKd0DC4snoGEgxD+c1vhGyOC1402w X-Received: by 2002:a05:6402:12cf:: with SMTP id k15mr9499979edx.130.1620369160411; Thu, 06 May 2021 23:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620369160; cv=none; d=google.com; s=arc-20160816; b=TDuiQpCS+kNSCLUXJBEvaJjTKaeqVBf8KkUtlHHuNeLlnCAi4e1Su7mRTC5suXTu+p OnN+IV5C9rVH7L+E++mcvcjammbvFCatVXtpeunZX17iIEcRBEwnN02GNeRvD8o75NOl aS+iCDBfEVZK+5L4Kip/f9/Gdmr6yA2pA38oqyMrOa4thcsVQlO/SlGIWCezVxLPPhL1 UFNGPD/sR8i80j0z6B4rgWj+dUFoe0Ng73j3gxGRzraKAYA2/pRyD8ZbSY6vJUFszcyk /d8D/ia7yBmwQ+s2+fEVo1QLkZfxgiEm0yydCui8FHp8j2VkfK1q/EPXk5l5vxOyVQdy EPrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=AfL2l3JMuuhhUBhvNpfN+2/EhROj6gQ/M0/Q3+vT/T0=; b=QJunRQAcEwgqGRarc3Co2PX1CHCobllNQZl2dYs5727JJE5egW39hv+lrSiKWQjPM6 s+DLGxxe1x9Dt9k9QTKELl6osW3aWpmS3xTmyXSH3lzhTSeUue/vZ14W8dGxSCZJPjOh J66woMcQC+cTB/e/pfdubMy7imAU7fJ3hAmswd1ki+TmiUn8dJ4Hc2qyVaGeSh7fFshA Fs/6TLeSO6j3Uo1xUbNalcLwQ9kMcD8I+7cPp6rhojU9OEboYrwteFG9kLfBu0sOqpvG XiVphDAVjJxeWFV6P1RW2c9vaYRp8cMlc6KcZphU8WmLOFL8B/r61KdOLVPhl7zqtnvV 9TyQ== 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si4258350edo.131.2021.05.06.23.32.15; Thu, 06 May 2021 23:32:40 -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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234299AbhEGCMg (ORCPT + 99 others); Thu, 6 May 2021 22:12:36 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40264 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233728AbhEGCMe (ORCPT ); Thu, 6 May 2021 22:12:34 -0400 X-UUID: 6a980f108d9b4e22b1ca27b4896adfda-20210507 X-UUID: 6a980f108d9b4e22b1ca27b4896adfda-20210507 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2097861120; Fri, 07 May 2021 10:11:31 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 7 May 2021 10:11:29 +0800 Received: from mtkslt301.mediatek.inc (10.21.14.114) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 7 May 2021 10:11:29 +0800 From: Chunfeng Yun To: Mathias Nyman CC: Chunfeng Yun , Greg Kroah-Hartman , Matthias Brugger , , , , , Ikjoon Jang , Eddie Hung , Sergei Shtylyov Subject: [PATCH v3 2/4] usb: xhci-mtk: remove unnecessary setting of has_ippc Date: Fri, 7 May 2021 10:11:25 +0800 Message-ID: <20210507021127.54717-2-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210507021127.54717-1-chunfeng.yun@mediatek.com> References: <20210507021127.54717-1-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: EDB69650B5819A47EFB3C763348CDA24389B7BFCA6749B257CB08F83C37B88772000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Due to @has_ippc's default value is 0, no need set it again if fail to get ippc base address Signed-off-by: Chunfeng Yun --- v3: new patch suggested by Greg fix typo suggested by Sergei --- drivers/usb/host/xhci-mtk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index b2058b3bc834..2548976bcf05 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -495,8 +495,6 @@ static int xhci_mtk_probe(struct platform_device *pdev) goto put_usb2_hcd; } mtk->has_ippc = true; - } else { - mtk->has_ippc = false; } device_init_wakeup(dev, true); -- 2.18.0