From patchwork Sat Jun 5 14:38:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1488219 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=tlVnReO9; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fy2MQ2bszz9sRK for ; Sun, 6 Jun 2021 00:39:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EE52382B1C; Sat, 5 Jun 2021 16:39:00 +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="tlVnReO9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4368482B1C; Sat, 5 Jun 2021 16:38:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (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 15B5281CE7 for ; Sat, 5 Jun 2021 16:38:54 +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-pf1-x42f.google.com with SMTP id x73so9590325pfc.8 for ; Sat, 05 Jun 2021 07:38:54 -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=/ZZKbx8o5eWGFym9la7h3t4iP0ggpYuxhMkwOWwo03k=; b=tlVnReO9P26bMCNI+YMBzU+rGfpRDBvg8a320x97I4F8MbBMZVw1fOqoEFcVd1IFJP R9rHlM2dTB8Mw8DDf+u/XTC+IaQlfYQexyMdA5K74AqT6qu4BKdMKgrwTaBG0FwpAvyq 3+KEdUZ4nZJewnVGzgbZsaibCija2pDTzv6nIVrU5NhbXI+1WLjT7D4eopXenVldcdSb p1miIR+88JoOcmLiik/Icb1f/rE+xlgR1D5e9sMJBc8ri+pW5/+adKm2LRyjd9uq2d6h mfthNiBJTviALUsbRbbRd0Sj+0napWhDJZ4l/S9Ho1henDKiF0jB6NcA/e/YqudAa+9f 1nnQ== 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=/ZZKbx8o5eWGFym9la7h3t4iP0ggpYuxhMkwOWwo03k=; b=LmhHMMQIAJh5q4deFT90Irfq1q1PSLVmP7aZPustT1gya6sayDTEm7ATXG6Ci2K4Di BJ/2AAJdELX19r5hkN6ZXHvVrI4aNqyygXtyZB5Yakdoj42Ssu4EvUnBj25Qjv/gmNhM tkoX/mUAMWFCFtXNgdDJMW1EN3ZAFs55BDnVe1kXbIxz3uoX0d6+di7Wh25iV7wlO1zQ LmqgXHYtaAgOUFUCPV2Ow7uNedwLl9ROzaH8x2qT/yVEqRoUJWXV58i3SNyhFW0+rHG3 HER/gmKkDjsOi9xvz3Szca8O292w+O2vHrPnJUTNwEadZJ9g27zVC8Xce4KCrw6dG6BJ alYg== X-Gm-Message-State: AOAM530fLFGMzeQi2TrmksUNbvIVOV5Wcr0lxNE6F6+NwQaFmD7SOZkd OsysMFcgs9KFK2ivkIEvMvGFOrNF3nY= X-Google-Smtp-Source: ABdhPJwXGVg/gNx4RLjvy0S7EGgL6kcuB0J9iVeq6AIWgEofimb1NfVZ2mFdG2MU5ps9pEfjQsLixA== X-Received: by 2002:a63:e02:: with SMTP id d2mr10143216pgl.166.1622903932340; Sat, 05 Jun 2021 07:38:52 -0700 (PDT) Received: from archl-on1e.. ([103.51.92.174]) by smtp.gmail.com with ESMTPSA id 15sm4151313pfv.1.2021.06.05.07.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Jun 2021 07:38:51 -0700 (PDT) From: Anand Moon To: u-boot@lists.denx.de Cc: Neil Armstrong , Kever Yang , Patrick Wildt Subject: [PATCHv4 2/3] pci: pcie_dw_rockchip: Drop the unused variable warning Date: Sat, 5 Jun 2021 14:38:42 +0000 Message-Id: <20210605143843.18607-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210605143843.18607-1-linux.amoon@gmail.com> References: <20210605143843.18607-1-linux.amoon@gmail.com> MIME-Version: 1.0 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 Reviewed-by: Neil Armstrong Reviewed-by: Patrick Wildt Signed-off-by: Anand Moon Reviewed-by: Kever Yang --- 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,