From mboxrd@z Thu Jan 1 00:00:00 1970 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,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 56121C4707A for ; Fri, 21 May 2021 17:00:28 +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 34128613E3 for ; Fri, 21 May 2021 17:00:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 34128613E3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.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 78D0A82E80; Fri, 21 May 2021 19:00:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="Mf034wMz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9E4C382E7E; Fri, 21 May 2021 19:00:09 +0200 (CEST) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (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 4F82582C97 for ; Fri, 21 May 2021 19:00:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux.amoon@gmail.com Received: by mail-pl1-x62c.google.com with SMTP id n8so6078566plf.7 for ; Fri, 21 May 2021 10:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VY10a8eiAJiAuvqiTTD3Hy2C8Z1fezBa9HUmOTwtXm0=; b=Mf034wMzq0sQaWix554S6IF4Ssd3jZRO/lYVZ2bfY7SyEr0QhCHYtRZKSMJNU8MJnB 3XoqTZzbvwLc1HvgoWBgh6Lvmw1IRL3LVlMpYtmlyQhYLSojM5tPUE3gH6XJzhK19G3u N2SAamSpPpCO7ihY2O6vnYXJa724XHly47JQ+C2RGfVdQ61532lj7s+cyFkLosAsXUlC B3EX+uci75WXZ9CkQ9vLyU3cz/C/UtTrOnQSyYyvmkWagoJrdemeqfxynicsQq+vX8Tk 5kOU55lXGU1etdAdD1L6XYGntz25lOVKoH+CMilxVBkSFwDfV/Ln+DtcC/YmK/SoQVJS bFLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VY10a8eiAJiAuvqiTTD3Hy2C8Z1fezBa9HUmOTwtXm0=; b=GeD03Rrhp8Uy4uwV2mu9iudxCFX8aezlr3Q9bKUopAcvErvZHWs/GAybJDUTzOz88n Ay93rb0XTtXZUepuMJvD3JkArL0nPGyEUPXvrWmYqYzZqb8vTK4/9XdKksbYBlroPa8D QW75k6s/aj+ATiCSt6J4y58JcZDXqYwXJM3Ja3uesG2Zl9vCUb0tdVD6LSgupis/KMCz IRBK5bNJZsvvqpFUK1tVOu3+ePkrkfG4/tHPsNw0aAgmMx7fwG178k0ig4XwhlzgMH62 i2w82tlmEMw/IbUGWLOqd3wR4Ug2kDQOJ/YnWYqHlbEbZgZhCPJnHvtG2FsqQnONZ9r+ vcog== X-Gm-Message-State: AOAM530ucb4gWKxvQXb1Jj8PxxWTj/at9ONplcdYB01+ZlttCk5ZGn62 MyQ+EjDZHEIU4XXQESrKta3MxxLRWM8szQ== X-Google-Smtp-Source: ABdhPJzECvHNhOghZRSJkuzKX7+stTbCcWI+USuRWNDif7NFf8XjcnoYKeju66BYEw1AsHArbEvlvQ== X-Received: by 2002:a17:90a:602:: with SMTP id j2mr11895938pjj.211.1621616399666; Fri, 21 May 2021 09:59:59 -0700 (PDT) Received: from archl-on1.. ([103.51.72.119]) by smtp.gmail.com with ESMTPSA id c15sm453997pgt.68.2021.05.21.09.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 May 2021 09:59:59 -0700 (PDT) From: Anand Moon To: u-boot@lists.denx.de Cc: Neil Armstrong , Kever Yang , Shawn Lin , Patrick Wildt , Anand Moon Subject: [PATCHv2 2/3] pci: pcie_dw_rockchip: Drop the unused variable warning Date: Fri, 21 May 2021 16:59:48 +0000 Message-Id: <20210521165949.15909-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210521165949.15909-1-linux.amoon@gmail.com> References: <20210521165949.15909-1-linux.amoon@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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, -- 2.31.1