Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp483091pxk; Thu, 17 Sep 2020 08:09:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDvJbE4K+B1J07f+AczkoqFm4dy93xHWJqEf3FSJuXqWWAqtO1NVCl0jqgM9jqNA2L0MsX X-Received: by 2002:a50:aaca:: with SMTP id r10mr34609962edc.307.1600355356154; Thu, 17 Sep 2020 08:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600355356; cv=none; d=google.com; s=arc-20160816; b=x51oTQmsLtX5JkZcZG83TG6Nr4iDeeaEAIoYcGy/IiAuGl5YSMyrxtiW4RmibwkVs/ Xg+OHXC8FRFzCFhg1oc6hzyWdpqRfd1jho/v0DI+Lvc9U/X5fwWMc4/sycnx/fp82cwW 69ennU0N/q/dsQ7xVehoApQMsR+4PXk9JthcSLZk97aJHbeC2P13Ks9u/wHXEepwqEsT H7UbwI/+3/ZxGkYVOqh8fSRj46zQj5GUm4dExo5XuTUw7zi+6B2Ww0DG3+ilFVrZ29B7 B8Xp6UMulWfNvKOFlCznzQmKWT0eZtAff2mHeNeNS9YGrLGhbveDss/vFyyO2xBt0pcC SRnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8+fGfAsiNIkFfwWzfEoIkpdYXv05xEG/Mk74AEbV3KA=; b=Vw4HUS/+QAh23n81SLniNIHW7Gkbgu0KwHhUwREdibkG3a7GikIFEpi+LGTZbLIfDk Irw5RPrU+Y8GzdNPgkH+9QYNKTAH2JTak+oXofr/y+8HDsonlP4GNNLNgWeXIJs6K+0k BUPIeK6SHcwENiC3zwGrshnMo+XFuH2V5LiMBjx3rvx2nfog/b0BKs2ACGG6fBOBrr5Z tHyP5ZpGJdWTMvCj2FYu/BlOVCCM5nSfb1+1E92nluBYAcDs5mLcmsKBQz1ZfbZI4fDF y61GfXk/D2ykIITv9oGrADgqrsgL6c09EuDyvUjN45LHDntTLomcBzmtSza66l4V2ndi SOTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="dtM/sJD3"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c21si13980530edw.18.2020.09.17.08.08.52; Thu, 17 Sep 2020 08:09:16 -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=@kernel.org header.s=default header.b="dtM/sJD3"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727897AbgIQPHq (ORCPT + 99 others); Thu, 17 Sep 2020 11:07:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:55400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbgIQPGW (ORCPT ); Thu, 17 Sep 2020 11:06:22 -0400 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2CBAD206D4; Thu, 17 Sep 2020 15:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600355163; bh=8+fGfAsiNIkFfwWzfEoIkpdYXv05xEG/Mk74AEbV3KA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dtM/sJD3trp/6qxR9BtZvoZPH1lUl3GdSHtZ8Rtb4mrFrgaMB6wZ+Eo5EBcbr/Ago 0PBVW/Y0C+IhYk7+r3uuCVqXUM3buZujzwShWOFZ6HmufruRDX7S62BH58i8jDShfI IgGyOCDFE/aKugFcmSdibi0DoMx2mMWr3dYTpG08= Received: by mail-ot1-f53.google.com with SMTP id a2so2177822otr.11; Thu, 17 Sep 2020 08:06:03 -0700 (PDT) X-Gm-Message-State: AOAM532lualD+QhnmPTN6eMlWvYvfhSXjpJvCcu4EM6xlwd+dzuphlC7 gNyM0LGgvO2TEE/k974AEHYbJwYBTxl16cuN+w== X-Received: by 2002:a05:6830:1008:: with SMTP id a8mr18556801otp.107.1600355162516; Thu, 17 Sep 2020 08:06:02 -0700 (PDT) MIME-Version: 1.0 References: <20200917071758.1915565-1-liushixin2@huawei.com> In-Reply-To: <20200917071758.1915565-1-liushixin2@huawei.com> From: Rob Herring Date: Thu, 17 Sep 2020 09:05:50 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next] PCI: dwc: Remove set but not used variable To: Liu Shixin Cc: Kishon Vijay Abraham I , Lorenzo Pieralisi , Bjorn Helgaas , linux-omap , PCI , linux-arm-kernel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 12:55 AM Liu Shixin wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/pci/controller/dwc/pci-dra7xx.c: In function 'dra7xx_pcie_establish_link': > drivers/pci/controller/dwc/pci-dra7xx.c:142:6: warning: unused variable 'exp_cap_off' > [-Wunused-variable] > > After 3af45d34d30c ("PCI: dwc: Centralize link gen setting"), variable 'exp_cap_off' > is never used. Remove it to avoid build warning. Already fixed in next. Rob