Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC4DDC47082 for ; Mon, 31 May 2021 08:43:11 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DAB9B60FEE for ; Mon, 31 May 2021 08:43:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DAB9B60FEE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A11B82E6A; Mon, 31 May 2021 10:43:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="ENKVjIvb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 498E482E7C; Mon, 31 May 2021 10:43:04 +0200 (CEST) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 176D682E5B for ; Mon, 31 May 2021 10:42:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wm1-x335.google.com with SMTP id y184-20020a1ce1c10000b02901769b409001so6081248wmg.3 for ; Mon, 31 May 2021 01:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7WQXPPj/BJCggpdY1It1XeYOATImInE7ECYxTfcbll4=; b=ENKVjIvbVS7xqiXVi6wzndHzL4H+Tprm6dSeWheWNlJebNdSf+VN0zLitnBcQ988cC /F59agotP/eZ9gnUFEfkHpN38AqmZM4vZg86eLL/VmGYabmVlTeTLjmxPxbsK+xr51Qk pb9+uu346ypmZsGrYBlYhAGNbAzJHh6xhu2SCAei8KFQvTIaDIce1+Tgft1sNeUltLWe HNs50wtW+uJLUxrB9DDqP9b7x2DChDEsBq/cxUA0t1n5Yq8LAkSF5xMsvbWPvyjuqt0r vdEo9G6cidI3xpjUElKjM+/v5iQ7bqT7S1FS8gY5aqDwMNsTAc3Jc20r+2KVs+HOsv2d Nytg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=7WQXPPj/BJCggpdY1It1XeYOATImInE7ECYxTfcbll4=; b=lAGk0d4F0Q7rNiZkoHNvG0szoh8ZMCWIv92yXYmKZLdYQipp28rRahqiJXR/XiT+rh QENTltBYSHKE065SRqj1s0EXqfGKbRleMLrkJ3XoHMUPpaF1sOXVAs0pSOi+z4HrkDMG YjPQ2r53KDs4KwnHAa2Zi6nZ1Lbf6iyEmc8QEnv6UMNOeS/vrCQ2X7YlF7HeB4UYunFM +NQQNjEcQ2rXXDhy1wZAAfEnKMiPWRV6VnSaR+CtaYADsk/jtz1lfVeD86zeB2LKPoDS ckSylvsC+nu18JaER4qFA4Xvkxi4Gd+CcsFnLc65cBAjPsswJSZXChMa63MMbTsdOA1s tr8A== X-Gm-Message-State: AOAM531GVSZjGEyQMhHk8upV5lc8R8eL5bfVxXQ0FJoSQ94su/6o7AnE cADeodTCw5IYpdqqRQEZsr9Ovg== X-Google-Smtp-Source: ABdhPJyqDducaFmfhckxxsazqG702MOFGmJnEIj2DAuWL/hPOGLCRLNbwG6XiP+eBYIIMitjwxXY3A== X-Received: by 2002:a7b:c1d3:: with SMTP id a19mr19864349wmj.104.1622450577635; Mon, 31 May 2021 01:42:57 -0700 (PDT) Received: from ?IPv6:2a01:e0a:90c:e290:6567:aa5c:6dc2:fff8? ([2a01:e0a:90c:e290:6567:aa5c:6dc2:fff8]) by smtp.gmail.com with ESMTPSA id n8sm2155738wmi.16.2021.05.31.01.42.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 May 2021 01:42:57 -0700 (PDT) Subject: Re: [PATCHv2 2/3] pci: pcie_dw_rockchip: Drop the unused variable warning To: Anand Moon , u-boot@lists.denx.de Cc: Kever Yang , Shawn Lin , Patrick Wildt References: <20210521165949.15909-1-linux.amoon@gmail.com> <20210521165949.15909-2-linux.amoon@gmail.com> From: Neil Armstrong Organization: Baylibre Message-ID: Date: Mon, 31 May 2021 10:42:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210521165949.15909-2-linux.amoon@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean On 21/05/2021 18:59, Anand Moon wrote: > Drop the unused variable warning below. > > drivers/pci/pcie_dw_rockchip.c:161:6: warning: unused variable > 'val' [-Wunused-variable] > 161 | u32 val; > | ^~~ > > Cc: Patrick Wildt > Cc: Neil Armstrong > Cc: Kever Yang > Signed-off-by: Anand Moon > --- > drivers/pci/pcie_dw_rockchip.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c > index 3ac2434b69..4e448c0a3d 100644 > --- a/drivers/pci/pcie_dw_rockchip.c > +++ b/drivers/pci/pcie_dw_rockchip.c > @@ -158,8 +158,6 @@ static inline void rk_pcie_writel_apb(struct rk_pcie *rk_pcie, u32 reg, > */ > static void rk_pcie_configure(struct rk_pcie *pci, u32 cap_speed) > { > - u32 val; > - > dw_pcie_dbi_write_enable(&pci->dw, true); > > clrsetbits_le32(pci->dw.dbi_base + PCIE_LINK_CAPABILITY, > Reviewed-by: Neil Armstrong